Class: ActiveAdmin::Favorites::Configuration
- Inherits:
-
Object
- Object
- ActiveAdmin::Favorites::Configuration
- Defined in:
- lib/activeadmin/favorites/configuration.rb
Instance Attribute Summary collapse
-
#current_user_method ⇒ Object
Returns the value of attribute current_user_method.
-
#namespace_name ⇒ Object
Returns the value of attribute namespace_name.
-
#stimulus_controller ⇒ Object
Returns the value of attribute stimulus_controller.
-
#table_name ⇒ Object
Returns the value of attribute table_name.
-
#user_association_name ⇒ Object
Returns the value of attribute user_association_name.
-
#user_class ⇒ Object
Returns the value of attribute user_class.
-
#user_foreign_key ⇒ Object
Returns the value of attribute user_foreign_key.
-
#user_label_method ⇒ Object
Returns the value of attribute user_label_method.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #namespace_path_prefix ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/activeadmin/favorites/configuration.rb', line 15 def initialize @user_class = "User" @user_foreign_key = :user_id @user_association_name = :user @user_label_method = :email @current_user_method = :current_user @stimulus_controller = "activeadmin-favorites--personalization" @namespace_name = :admin @table_name = "admin_favorites" end |
Instance Attribute Details
#current_user_method ⇒ Object
Returns the value of attribute current_user_method.
6 7 8 |
# File 'lib/activeadmin/favorites/configuration.rb', line 6 def current_user_method @current_user_method end |
#namespace_name ⇒ Object
Returns the value of attribute namespace_name.
6 7 8 |
# File 'lib/activeadmin/favorites/configuration.rb', line 6 def namespace_name @namespace_name end |
#stimulus_controller ⇒ Object
Returns the value of attribute stimulus_controller.
6 7 8 |
# File 'lib/activeadmin/favorites/configuration.rb', line 6 def stimulus_controller @stimulus_controller end |
#table_name ⇒ Object
Returns the value of attribute table_name.
6 7 8 |
# File 'lib/activeadmin/favorites/configuration.rb', line 6 def table_name @table_name end |
#user_association_name ⇒ Object
Returns the value of attribute user_association_name.
6 7 8 |
# File 'lib/activeadmin/favorites/configuration.rb', line 6 def user_association_name @user_association_name end |
#user_class ⇒ Object
Returns the value of attribute user_class.
6 7 8 |
# File 'lib/activeadmin/favorites/configuration.rb', line 6 def user_class @user_class end |
#user_foreign_key ⇒ Object
Returns the value of attribute user_foreign_key.
6 7 8 |
# File 'lib/activeadmin/favorites/configuration.rb', line 6 def user_foreign_key @user_foreign_key end |
#user_label_method ⇒ Object
Returns the value of attribute user_label_method.
6 7 8 |
# File 'lib/activeadmin/favorites/configuration.rb', line 6 def user_label_method @user_label_method end |
Instance Method Details
#namespace_path_prefix ⇒ Object
26 27 28 |
# File 'lib/activeadmin/favorites/configuration.rb', line 26 def namespace_path_prefix "/#{namespace_name}/" end |