Class: ActiveadminMcp::Configuration
- Inherits:
-
Object
- Object
- ActiveadminMcp::Configuration
- Defined in:
- lib/activeadmin_mcp/configuration.rb
Constant Summary collapse
- MOUNT_STRATEGIES =
%i[prepend append none].freeze
Instance Attribute Summary collapse
-
#auth_header_name ⇒ Object
Returns the value of attribute auth_header_name.
-
#authentication_method ⇒ Object
Returns the value of attribute authentication_method.
-
#current_user_method ⇒ Object
Returns the value of attribute current_user_method.
-
#menu_parent ⇒ Object
Returns the value of attribute menu_parent.
-
#mount_path ⇒ Object
Returns the value of attribute mount_path.
-
#mount_strategy ⇒ Object
Returns the value of attribute mount_strategy.
-
#user_class ⇒ Object
Returns the value of attribute user_class.
Instance Method Summary collapse
- #authentication_enabled? ⇒ Boolean
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
12 13 14 15 16 17 18 19 20 |
# File 'lib/activeadmin_mcp/configuration.rb', line 12 def initialize @authentication_method = nil @user_class = "User" @current_user_method = :current_admin_user @menu_parent = nil @mount_path = "/mcp" @mount_strategy = :prepend @auth_header_name = "Authorization" end |
Instance Attribute Details
#auth_header_name ⇒ Object
Returns the value of attribute auth_header_name.
7 8 9 |
# File 'lib/activeadmin_mcp/configuration.rb', line 7 def auth_header_name @auth_header_name end |
#authentication_method ⇒ Object
Returns the value of attribute authentication_method.
7 8 9 |
# File 'lib/activeadmin_mcp/configuration.rb', line 7 def authentication_method @authentication_method end |
#current_user_method ⇒ Object
Returns the value of attribute current_user_method.
7 8 9 |
# File 'lib/activeadmin_mcp/configuration.rb', line 7 def current_user_method @current_user_method end |
#menu_parent ⇒ Object
Returns the value of attribute menu_parent.
7 8 9 |
# File 'lib/activeadmin_mcp/configuration.rb', line 7 def @menu_parent end |
#mount_path ⇒ Object
Returns the value of attribute mount_path.
7 8 9 |
# File 'lib/activeadmin_mcp/configuration.rb', line 7 def mount_path @mount_path end |
#mount_strategy ⇒ Object
Returns the value of attribute mount_strategy.
10 11 12 |
# File 'lib/activeadmin_mcp/configuration.rb', line 10 def mount_strategy @mount_strategy end |
#user_class ⇒ Object
Returns the value of attribute user_class.
7 8 9 |
# File 'lib/activeadmin_mcp/configuration.rb', line 7 def user_class @user_class end |
Instance Method Details
#authentication_enabled? ⇒ Boolean
30 31 32 |
# File 'lib/activeadmin_mcp/configuration.rb', line 30 def authentication_enabled? authentication_method == :devise_token end |