module AppFrame::ControllerMethods::HasManySupport::ClassMethods
Public Instance Methods
child_resources()
click to toggle source
# File lib/app_frame/controller_methods.rb, line 75 def child_resources @child_resources ||= [] end
has_many(symbol, options = {})
click to toggle source
# File lib/app_frame/controller_methods.rb, line 79 def has_many(symbol, options = {}) config = { :symbol => symbol, :name => symbol.to_s.humanize, :resource_class => symbol.to_s.classify.constantize, :resource_name => symbol.to_s.classify }.merge(options) self.child_resources << config end