the user property gets set to the instantiation of the local UserSettings class during the automatic instantiation of this class.
# File lib/active_scaffold/config/base.rb, line 11 def self.inherited(subclass) class << subclass # the crud type of the action. possible values are :create, :read, :update, :delete, and nil. # this is not a setting for the developer. it's self-description for the actions. def crud_type; @crud_type; end protected def crud_type=(val) raise ArgumentError, "unknown CRUD type #{val}" unless [:create, :read, :update, :delete].include?(val.to_sym) @crud_type = val.to_sym end end end
delegate
# File lib/active_scaffold/config/base.rb, line 27 def crud_type; self.class.crud_type end
# File lib/active_scaffold/config/base.rb, line 70 def formats @formats ||= [] end
Generated with the Darkfish Rdoc Generator 2.