Module: Avo::Concerns::Hydration
- Included in:
- BaseAction, BaseResourceTool, IsResourceItem, Resources::Base, Resources::Items::Row
- Defined in:
- lib/avo/concerns/hydration.rb
Instance Method Summary collapse
Instance Method Details
#hydrate(**args) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/avo/concerns/hydration.rb', line 4 def hydrate(**args) args.each do |key, value| value = Avo::ViewInquirer.new value if key == :view send(:"#{key}=", value) if respond_to?(:"#{key}=") end self end |