Sha256: 6cdbbf19c858369381759093cd5fc2afea05878c37173651d076c5400566a54b
Contents?: true
Size: 891 Bytes
Versions: 1
Compression:
Stored size: 891 Bytes
Contents
module Spree module Auth class Configuration attr_accessor :registration_step, :signout_after_password_change, :confirmable, :database_authenticatable, :recoverable, :registerable, :validatable def initialize self.registration_step = true self.signout_after_password_change = true self.confirmable = false self.database_authenticatable = true self.recoverable = true self.registerable = true self.validatable = true end def configure yield(self) if block_given? end def get(preference) send(preference) end alias [] get def set(preference, value) send("#{preference}=", value) end alias []= set end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spree_auth_devise-4.6.3 | lib/spree/auth/configuration.rb |