Class: Wallaby::Configuration::Metadata Deprecated

Inherits:
Object
  • Object
show all
Defined in:
lib/wallaby/configuration/metadata.rb

Overview

Deprecated.

Instance Method Summary collapse

Instance Method Details

#maxObject

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