Method: Trust::Controller::ClassMethods#properties

Defined in:
lib/trust/controller.rb

#propertiesObject

Returns the controller Trust::Controller::Properties. If no properties are instantiated, it will be instantiated

Delegated methods

The following methods are delegated to properties. See Trust::Controller::Properties for details

  • belongs_to - define one or more associations to parents

  • actions - acion definitions outside the restful actions

  • model - Redefine the model used in the controller (if it’s name does not match the controller_path)



46
47
48
# File 'lib/trust/controller.rb', line 46

def properties
  @properties ||= Trust::Controller::Properties.instantiate(self)
end