Class: Wallaby::Configuration::Metadata Deprecated
- Inherits:
-
Object
- Object
- Wallaby::Configuration::Metadata
- Defined in:
- lib/wallaby/configuration/metadata.rb
Overview
Deprecated.
Instance Method Summary collapse
- #max ⇒ Object deprecated Deprecated.
- #max=(_max) ⇒ Object deprecated Deprecated.
Instance Method Details
#max ⇒ Object
Deprecated.
19 20 21 22 23 |
# File 'lib/wallaby/configuration/metadata.rb', line 19 def max Deprecator.alert 'config.metadata.max', from: '0.3.0', alternative: <<~INSTRUCTION Please use controller_class.max_text_length instead. INSTRUCTION end |
#max=(_max) ⇒ Object
Deprecated.
8 9 10 11 12 13 14 15 16 |
# File 'lib/wallaby/configuration/metadata.rb', line 8 def max=(_max) Deprecator.alert 'config.metadata.max=', from: '0.3.0', alternative: <<~INSTRUCTION Please set .max_text_length= from the controller instead, for example: class Admin::ApplicationController < Wallaby::ResourcesController self.max_text_length = 50 end INSTRUCTION end |