Add full name methods on a model
Ruby
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.gitignore
Gemfile
LICENSE.md
README.md
Rakefile
act_as_nameable.gemspec

README.md

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.