Class: Mongoid::Accountify::Config
- Inherits:
-
Object
- Object
- Mongoid::Accountify::Config
- Defined in:
- lib/mongoid/accountify/config.rb
Instance Attribute Summary collapse
-
#account_model ⇒ Object
Returns the value of attribute account_model.
-
#account_reader ⇒ Object
Returns the value of attribute account_reader.
-
#account_relation ⇒ Object
Returns the value of attribute account_relation.
Instance Method Summary collapse
-
#initialize(&block) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(&block) ⇒ Config
Returns a new instance of Config.
9 10 11 12 13 14 15 |
# File 'lib/mongoid/accountify/config.rb', line 9 def initialize(&block) @account_reader = :current_account @account_model = :account @account_relation = :account instance_eval(&block) if block_given? end |
Instance Attribute Details
#account_model ⇒ Object
Returns the value of attribute account_model.
6 7 8 |
# File 'lib/mongoid/accountify/config.rb', line 6 def account_model @account_model end |
#account_reader ⇒ Object
Returns the value of attribute account_reader.
5 6 7 |
# File 'lib/mongoid/accountify/config.rb', line 5 def account_reader @account_reader end |
#account_relation ⇒ Object
Returns the value of attribute account_relation.
7 8 9 |
# File 'lib/mongoid/accountify/config.rb', line 7 def account_relation @account_relation end |