Class: Resque::Mcp::Configuration
- Inherits:
-
Object
- Object
- Resque::Mcp::Configuration
- Defined in:
- lib/resque/mcp/configuration.rb
Instance Attribute Summary collapse
-
#auth_token ⇒ Object
Returns the value of attribute auth_token.
-
#default_filter_parameters ⇒ Object
Internal seam: a callable returning the host's filter list, read lazily so late additions to Rails' list (or other engines' after_initialize hooks) are never missed.
-
#filter_parameters ⇒ Object
nil = inherit the host default (the engine wires Rails' filter_parameters as a lazy source); an explicit list replaces it ([] disables filtering).
Instance Method Summary collapse
-
#param_filter ⇒ Object
Memoized against the effective list, so both reassignment and in-place mutation (config.filter_parameters << :iban) take effect.
Instance Attribute Details
#auth_token ⇒ Object
Returns the value of attribute auth_token.
6 7 8 |
# File 'lib/resque/mcp/configuration.rb', line 6 def auth_token @auth_token end |
#default_filter_parameters ⇒ Object
Internal seam: a callable returning the host's filter list, read lazily so late additions to Rails' list (or other engines' after_initialize hooks) are never missed.
14 15 16 |
# File 'lib/resque/mcp/configuration.rb', line 14 def default_filter_parameters @default_filter_parameters end |
#filter_parameters ⇒ Object
nil = inherit the host default (the engine wires Rails' filter_parameters as a lazy source); an explicit list replaces it ([] disables filtering).
10 11 12 |
# File 'lib/resque/mcp/configuration.rb', line 10 def filter_parameters @filter_parameters end |
Instance Method Details
#param_filter ⇒ Object
Memoized against the effective list, so both reassignment and in-place mutation (config.filter_parameters << :iban) take effect.
18 19 20 21 22 23 24 25 |
# File 'lib/resque/mcp/configuration.rb', line 18 def param_filter list = filter_parameters || default_filter_parameters&.call || [] unless defined?(@param_filter) && @param_filter_list == list @param_filter_list = list.dup @param_filter = ActiveSupport::ParameterFilter.new(list) end @param_filter end |