Class: AnnotationValueSeed
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- AnnotationValueSeed
- Defined in:
- lib/app/models/annotation_value_seed.rb
Class Method Summary collapse
Class Method Details
.find_by_attribute_name(attr_name) ⇒ Object
40 41 42 43 44 45 46 47 |
# File 'lib/app/models/annotation_value_seed.rb', line 40 def self.find_by_attribute_name(attr_name) return [] if attr_name.blank? AnnotationValueSeed.find(:all, :joins => [ :attribute ], :conditions => { :annotation_attributes => { :name => attr_name } }, :order => "created_at DESC") end |