Class: Masq::Signup
- Inherits:
-
Object
- Object
- Masq::Signup
- Defined in:
- lib/masq/signup.rb
Instance Attribute Summary collapse
-
#account ⇒ Object
Returns the value of attribute account.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#account ⇒ Object
Returns the value of attribute account.
5 6 7 |
# File 'lib/masq/signup.rb', line 5 def account @account end |
Class Method Details
.create_account!(attrs = {}) ⇒ Object
8 9 10 11 12 |
# File 'lib/masq/signup.rb', line 8 def create_account!(attrs = {}) factory = new(attrs) factory.send(:create_account!) factory end |
Instance Method Details
#send_activation_email? ⇒ Boolean
19 20 21 |
# File 'lib/masq/signup.rb', line 19 def send_activation_email? Masq::Engine.config.masq["send_activation_mail"] end |
#succeeded? ⇒ Boolean
15 16 17 |
# File 'lib/masq/signup.rb', line 15 def succeeded? !account.new_record? end |