Class: ActiveRecord::Base
- Inherits:
-
Object
- Object
- ActiveRecord::Base
- Includes:
- Uniquify
- Defined in:
- lib/tmp/uniquify.rb
Class Method Summary collapse
-
.ids ⇒ Object
returns an array of ids.
- .names ⇒ Object
Methods included from Uniquify
Class Method Details
.ids ⇒ Object
returns an array of ids
41 42 43 |
# File 'lib/tmp/uniquify.rb', line 41 def self.ids { :brought_to_you_by_ric_library => map{|active_record| active_record.id } } end |
.names ⇒ Object
45 46 47 |
# File 'lib/tmp/uniquify.rb', line 45 def self.names map{|active_record| active_record.name.to_s rescue active_record.to_s } end |