Class: MyForum::Engine
- Inherits:
-
Rails::Engine
- Object
- Rails::Engine
- MyForum::Engine
- Defined in:
- lib/my_forum/engine.rb
Constant Summary collapse
- USE_CUSTOM_USER_MODEL =
false- CUSTOM_USER_CLASS =
'User'- CUSTOM_USER_LOGIN_ATTR =
'login'- CUSTOM_USER_PASSWORD_ATTR =
'password'- CUSTOM_AUTHENTICATE_METHOD =
'users#authenticate'
Instance Attribute Summary collapse
-
#custom_authenticate_method ⇒ Object
Returns the value of attribute custom_authenticate_method.
-
#custom_user_class ⇒ Object
Returns the value of attribute custom_user_class.
-
#custom_user_login_attr ⇒ Object
Returns the value of attribute custom_user_login_attr.
-
#custom_user_password_attr ⇒ Object
Returns the value of attribute custom_user_password_attr.
-
#use_custom_user_model ⇒ Object
Returns the value of attribute use_custom_user_model.
Instance Method Summary collapse
-
#initialize ⇒ Engine
constructor
A new instance of Engine.
Constructor Details
#initialize ⇒ Engine
Returns a new instance of Engine.
28 29 30 31 32 33 34 |
# File 'lib/my_forum/engine.rb', line 28 def initialize self.use_custom_user_model = USE_CUSTOM_USER_MODEL self.custom_user_class = CUSTOM_USER_CLASS self.custom_user_login_attr = CUSTOM_USER_LOGIN_ATTR self.custom_user_password_attr = CUSTOM_USER_PASSWORD_ATTR self.custom_authenticate_method = CUSTOM_AUTHENTICATE_METHOD end |
Instance Attribute Details
#custom_authenticate_method ⇒ Object
Returns the value of attribute custom_authenticate_method.
25 26 27 |
# File 'lib/my_forum/engine.rb', line 25 def custom_authenticate_method @custom_authenticate_method end |
#custom_user_class ⇒ Object
Returns the value of attribute custom_user_class.
25 26 27 |
# File 'lib/my_forum/engine.rb', line 25 def custom_user_class @custom_user_class end |
#custom_user_login_attr ⇒ Object
Returns the value of attribute custom_user_login_attr.
25 26 27 |
# File 'lib/my_forum/engine.rb', line 25 def custom_user_login_attr @custom_user_login_attr end |
#custom_user_password_attr ⇒ Object
Returns the value of attribute custom_user_password_attr.
25 26 27 |
# File 'lib/my_forum/engine.rb', line 25 def custom_user_password_attr @custom_user_password_attr end |
#use_custom_user_model ⇒ Object
Returns the value of attribute use_custom_user_model.
25 26 27 |
# File 'lib/my_forum/engine.rb', line 25 def use_custom_user_model @use_custom_user_model end |