Module: OldApiResource::Associations::InstanceMethods
- Defined in:
- lib/old_api_resource/associations.rb
Instance Method Summary collapse
- #association?(assoc) ⇒ Boolean
- #association_class_name(assoc) ⇒ Object
- #scope?(name) ⇒ Boolean
- #scope_attributes(name) ⇒ Object
- #scopes ⇒ Object
Instance Method Details
#association?(assoc) ⇒ Boolean
168 169 170 |
# File 'lib/old_api_resource/associations.rb', line 168 def association?(assoc) self.class.association?(assoc) end |
#association_class_name(assoc) ⇒ Object
172 173 174 |
# File 'lib/old_api_resource/associations.rb', line 172 def association_class_name(assoc) self.class.association_class_name(assoc) end |
#scope?(name) ⇒ Boolean
180 181 182 |
# File 'lib/old_api_resource/associations.rb', line 180 def scope?(name) return self.class.scope?(name) end |
#scope_attributes(name) ⇒ Object
184 185 186 |
# File 'lib/old_api_resource/associations.rb', line 184 def scope_attributes(name) return self.class.scope_attributes(name) end |
#scopes ⇒ Object
176 177 178 |
# File 'lib/old_api_resource/associations.rb', line 176 def scopes return self.class.scopes end |