Sha256: 29a92168e27c0b8c9115336c68f6a861197d55bdf6e9a793d0ae83b889c5583c

Contents?: true

Size: 223 Bytes

Versions: 8

Compression:

Stored size: 223 Bytes

Contents

class User < ActiveRecord::Base
  comma do
    first_name
    last_name
    full_name "Name"
  end

  comma :shortened do
    first_name
    last_name
  end

  def full_name
    "#{first_name} #{last_name}".strip
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
comma-3.2.0 spec/rails_app/app/models/user.rb
comma-3.1.1 spec/rails_app/app/models/user.rb
comma-3.1.0 spec/rails_app/app/models/user.rb
comma-3.0.6 spec/rails_app/app/models/user.rb
comma-3.0.5 spec/rails_app/app/models/user.rb
comma-3.0.4 spec/rails_app/app/models/user.rb
comma-3.0.3 spec/rails_app/app/models/user.rb
comma-3.0.2 spec/rails_app/app/models/user.rb