Sha256: f1987e8df6f74fe118765feaf3a77fec7fcef45a09eed8a53ab8da7701ae8710
Contents?: true
Size: 323 Bytes
Versions: 43
Compression:
Stored size: 323 Bytes
Contents
module Avo module Concerns module Hydration extend ActiveSupport::Concern 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 end end end
Version data entries
43 entries across 43 versions & 1 rubygems
Version | Path |
---|---|
avo-3.0.4 | lib/avo/concerns/hydration.rb |
avo-3.0.3 | lib/avo/concerns/hydration.rb |
avo-3.0.2 | lib/avo/concerns/hydration.rb |