Sha256: 36dd83ee510ea27b092738095c497904b1e3f5562a9bb115beefdb03c7dbbd01
Contents?: true
Size: 398 Bytes
Versions: 1
Compression:
Stored size: 398 Bytes
Contents
class Contact extend ActiveModel::Naming include ActiveModel::Conversion attr_accessor :id, :name, :age, :created_at, :awesome, :preferences def social %w(twitter github) end def network {:git => :github} end def initialize(options = {}) options.each { |name, value| send("#{name}=", value) } end def pseudonyms nil end def persisted? id end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mass_assignment_with_multiple_roles-0.0.1 | test/models/contact.rb |