Method: Effective::Resources::Associations#nested_resources
- Defined in:
- app/models/effective/resources/associations.rb
#nested_resources ⇒ Object
29 30 31 32 |
# File 'app/models/effective/resources/associations.rb', line 29 def nested_resources return [] unless klass.respond_to?(:reflect_on_all_associations) @nested_resources ||= klass.reflect_on_all_associations(:has_many).select { |ass| ass.[:autosave] } end |