Exception: SteelWheel::FormAttributesNotImplementedError

Inherits:
Error
  • Object
show all
Defined in:
lib/steel_wheel.rb

Overview

rubocop:disable Style/Documentation

Instance Method Summary collapse

Constructor Details

#initializeFormAttributesNotImplementedError

Returns a new instance of FormAttributesNotImplementedError.



38
39
40
41
42
43
44
45
46
47
# File 'lib/steel_wheel.rb', line 38

def initialize
  super(<<~HEREDOC)
    Subclass must implement form_attributes which returns a hash of attributes for the form

    Example:
    def form_attributes
      { model: model }
    end
  HEREDOC
end