vendor/plugins/activescaffold/lib/config/core.rb
def method_missing(name, *args)
      @action_configs ||= {}
      titled_name = name.to_s.camelcase
      underscored_name = name.to_s.underscore.to_sym
      if ActiveScaffold::Config.const_defined? titled_name
        if @actions.include? underscored_name
          return @action_configs[underscored_name] ||= eval("ActiveScaffold::Config::#{titled_name}").new(self)
        else
          raise "#{titled_name} is not enabled. Please enable it or remove any references in your configuration (e.g. config.#{underscored_name}.columns = [...])."
        end
      end
      super
    end
# configuration routing.
# we want to route calls named like an activated action to that action's global or local Config class.
# ---------------------------
configuration routing.
we want to route calls named like an activated action to that action's global or local Config class.
configuration routing . we want to route calls named like an activated action to that action ' s global or local Config class .
def method_missing(name, *args)
      @action_configs ||= {}
      titled_name = name.to_s.camelcase
      underscored_name = name.to_s.underscore.to_sym
      if ActiveScaffold::Config.const_defined? titled_name
        if @actions.include? underscored_name
          return @action_configs[underscored_name] ||= eval("ActiveScaffold::Config::#{titled_name}").new(self)
        else
          raise "#{titled_name} is not enabled. Please enable it or remove any references in your configuration (e.g. config.#{underscored_name}.columns = [...])."
        end
      end
      super
    end
def method_missing ( name , * args ) @action_configs ||= { } titled_name = name . to_s . camelcase underscored_name = name . to_s . underscore . to_sym if ActiveScaffold :: Config . const_defined? titled_name if @actions . include? underscored_name return @action_configs [ underscored_name ] ||= eval ( "ActiveScaffold::Config::#{titled_name}" ) . new ( self ) else raise "#{titled_name} is not enabled. Please enable it or remove any references in your configuration (e.g. config.#{underscored_name}.columns = [...])." end end super end
configuration routing.
configuration routing .
name
args