0.0
No commit activity in last 3 years
No release in over 3 years
Add full name methods on a model
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

~> 3.2.11
~> 3.2.11
 Project Readme

ActAsNameable

Gem Version

Add full name methods on a model

Usage

class User < ActiveRecord::Base
  act_as_nameable
    with: [:first_name, :surname, :middle_name, :second_surname],
    required: [:first_name, :surname]
end

Installation

Add gem 'act_as_nameable' to Gemfile, then:

bundle install

Or install it yourself as:

gem install act_as_nameable

Test

rake

Contributing

  1. Fork repository
  2. Create a branch following a successfull branching model
  3. Write your feature/fix
  4. Pull request

Licence

Released under the MIT License. See the LICENSE file for further details.