ALL | = | [] | Constants which holds devise configuration for extensions. Those should not be modified by the "end user" (this is why they are constants). | |
CONTROLLERS | = | ActiveSupport::OrderedHash.new | ||
ROUTES | = | ActiveSupport::OrderedHash.new | ||
STRATEGIES | = | ActiveSupport::OrderedHash.new | ||
URL_HELPERS | = | ActiveSupport::OrderedHash.new | ||
NO_INPUT | = | [] | Strategies that do not require user input. | |
TRUE_VALUES | = | [true, 1, '1', 't', 'T', 'true', 'TRUE'] | True values used to check params | |
ENCRYPTORS_LENGTH | = | { :sha1 => 40, :sha512 => 128, :clearance_sha1 => 40, :restful_authentication_sha1 => 40, :authlogic_sha512 => 128 | Declare encryptors length which are used in migrations. | |
VERSION | = | "1.5.2".freeze |
Make Devise aware of an 3rd party Devise-module (like invitable). For convenience.
+model+ - String representing the load path to a custom *model* for this module (to autoload.) +controller+ - Symbol representing the name of an exisiting or custom *controller* for this module. +route+ - Symbol representing the named *route* helper for this module. +strategy+ - Symbol representing if this module got a custom *strategy*.
All values, except :model, accept also a boolean and will have the same name as the given module name.
Devise.add_module(:party_module) Devise.add_module(:party_module, :strategy => true, :controller => :sessions) Devise.add_module(:party_module, :model => 'party_module/model')