Module: Milia

Defined in:
app/controllers/confirmations_controller.rb,
lib/milia.rb,
lib/milia/base.rb,
lib/milia/control.rb,
lib/milia/railtie.rb,
lib/milia/version.rb,
lib/milia/invite_member.rb,
lib/milia/password_generator.rb,
app/controllers/sessions_controller.rb,
lib/generators/milia/temp_generator.rb,
app/controllers/passwords_controller.rb,
lib/generators/milia/install_generator.rb,
app/controllers/registrations_controller.rb

Overview

************************************************************************** **************************************************************************

Defined Under Namespace

Modules: Base, Control, Generators, InviteMember Classes: ConfirmationsController, Password, PasswordsController, Railtie, RegistrationsController, SessionsController

Constant Summary collapse

VERSION =
"1.3.1"
@@use_coupon =
true
@@use_recaptcha =
true
@@signout_to_root =
true
@@use_airbrake =
false
@@use_invite_member =
true
@@whitelist_tenant_params =

whitelist tenant params list allows an app to expand the permitted attribute list specify each attribute as a symbol example: [:name] config.whitelist_tenant_params = []

[]
@@whitelist_coupon_params =

whitelist coupon params list allows an app to expand the permitted attribute list specify each attribute as a symbol example: [:name] config.whitelist_coupon_params = []

[]
@@trace_on =
false

Class Method Summary collapse

Class Method Details

.setup {|_self| ... } ⇒ Object

Default way to setup milia.

Yields:

  • (_self)

Yield Parameters:

  • _self (Milia)

    the object that the method was called on


71
72
73
# File 'lib/milia.rb', line 71

def self.setup
  yield self
end

.whitelist_coupon_paramsObject


60
61
62
# File 'lib/milia.rb', line 60

def self.whitelist_coupon_params()
  return @@whitelist_coupon_params << :coupon
end

.whitelist_coupon_params=(list) ⇒ Object

Raises:

  • (ArgumentError)

55
56
57
58
# File 'lib/milia.rb', line 55

def self.whitelist_coupon_params=(list)
  raise ArgumentError unless !list.nil? && list.kind_of?( Array )
  @@whitelist_coupon_params = list
end

.whitelist_tenant_paramsObject


44
45
46
# File 'lib/milia.rb', line 44

def self.whitelist_tenant_params()
  return @@whitelist_tenant_params << :name
end

.whitelist_tenant_params=(list) ⇒ Object

Raises:

  • (ArgumentError)

39
40
41
42
# File 'lib/milia.rb', line 39

def self.whitelist_tenant_params=(list)
  raise ArgumentError unless !list.nil? && list.kind_of?( Array )
  @@whitelist_tenant_params = list
end