Class: Scribo::ActiveModel::ErrorsDrop

Inherits:
Liquid::Drop
  • Object
show all
Defined in:
app/drops/scribo/active_model/errors_drop.rb

Instance Method Summary collapse

Constructor Details

#initialize(object) ⇒ ErrorsDrop

Returns a new instance of ErrorsDrop.



6
7
8
# File 'app/drops/scribo/active_model/errors_drop.rb', line 6

def initialize(object)
  @object = object
end

Instance Method Details

#messagesObject



11
12
13
# File 'app/drops/scribo/active_model/errors_drop.rb', line 11

def messages
  @object.messages.stringify_keys
end