Class: Hancock::Cache::Configuration
- Inherits:
-
Object
- Object
- Hancock::Cache::Configuration
- Defined in:
- lib/hancock/cache/configuration.rb
Instance Attribute Summary collapse
-
#localize ⇒ Object
Returns the value of attribute localize.
-
#model_settings_support ⇒ Object
Returns the value of attribute model_settings_support.
-
#preloaded_fragments ⇒ Object
Returns the value of attribute preloaded_fragments.
-
#ra_comments_support ⇒ Object
Returns the value of attribute ra_comments_support.
-
#runtime_cache_detector ⇒ Object
Returns the value of attribute runtime_cache_detector.
-
#user_abilities_support ⇒ Object
Returns the value of attribute user_abilities_support.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/hancock/cache/configuration.rb', line 24 def initialize @localize = Hancock.config.localize @runtime_cache_detector = false @model_settings_support = !!defined?(RailsAdminModelSettings) @user_abilities_support = !!defined?(RailsAdminUserAbilities) @ra_comments_support = !!defined?(RailsAdminComments) @preloaded_fragments = [] end |
Instance Attribute Details
#localize ⇒ Object
Returns the value of attribute localize.
14 15 16 |
# File 'lib/hancock/cache/configuration.rb', line 14 def localize @localize end |
#model_settings_support ⇒ Object
Returns the value of attribute model_settings_support.
18 19 20 |
# File 'lib/hancock/cache/configuration.rb', line 18 def model_settings_support @model_settings_support end |
#preloaded_fragments ⇒ Object
Returns the value of attribute preloaded_fragments.
22 23 24 |
# File 'lib/hancock/cache/configuration.rb', line 22 def preloaded_fragments @preloaded_fragments end |
#ra_comments_support ⇒ Object
Returns the value of attribute ra_comments_support.
20 21 22 |
# File 'lib/hancock/cache/configuration.rb', line 20 def ra_comments_support @ra_comments_support end |
#runtime_cache_detector ⇒ Object
Returns the value of attribute runtime_cache_detector.
16 17 18 |
# File 'lib/hancock/cache/configuration.rb', line 16 def runtime_cache_detector @runtime_cache_detector end |
#user_abilities_support ⇒ Object
Returns the value of attribute user_abilities_support.
19 20 21 |
# File 'lib/hancock/cache/configuration.rb', line 19 def user_abilities_support @user_abilities_support end |