Module ActsAsStaticRecord::InstanceMethods
In: lib/acts_as_static_record.rb

Methods

Public Instance methods

returns the lookup key for this record For example if the defintion in User was

  acts_as_static_record :key => :user_name

 user.user_name
 => "Blythe Snow Giraffe"

 user.static_record_lookup_key
 => 'blythe_snow_giraffe'

which could then be used to access the record like

 User['snowgiraffe']
 => <User id: 15, user_name: "Blythe Snow Giraffe">

[Validate]