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.6.1 lib/avo/concerns/hydration.rb
avo-3.6.0 lib/avo/concerns/hydration.rb
avo-3.5.8 lib/avo/concerns/hydration.rb
avo-3.5.7 lib/avo/concerns/hydration.rb
avo-3.5.6 lib/avo/concerns/hydration.rb
avo-3.5.6.beta1 lib/avo/concerns/hydration.rb
avo-3.5.5 lib/avo/concerns/hydration.rb
avo-3.5.4 lib/avo/concerns/hydration.rb
avo-3.5.3 lib/avo/concerns/hydration.rb
avo-3.5.2 lib/avo/concerns/hydration.rb
avo-3.5.1 lib/avo/concerns/hydration.rb
avo-3.5.0 lib/avo/concerns/hydration.rb
avo-3.4.4 lib/avo/concerns/hydration.rb
avo-3.4.3 lib/avo/concerns/hydration.rb
avo-3.4.2 lib/avo/concerns/hydration.rb
avo-3.4.1 lib/avo/concerns/hydration.rb
avo-3.4.0 lib/avo/concerns/hydration.rb
avo-3.3.6 lib/avo/concerns/hydration.rb
avo-3.3.5 lib/avo/concerns/hydration.rb
avo-3.3.4 lib/avo/concerns/hydration.rb