Method: OldApiResource::Associations::ClassMethods#scope_attributes
- Defined in:
- lib/old_api_resource/associations.rb
#scope_attributes(name) ⇒ Object
82 83 84 85 |
# File 'lib/old_api_resource/associations.rb', line 82 def scope_attributes(name) raise "No such scope #{name}" unless self.scope?(name) self.[:scope][name.to_sym] end |