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.3.3 lib/avo/concerns/hydration.rb
avo-3.3.2 lib/avo/concerns/hydration.rb
avo-3.3.1 lib/avo/concerns/hydration.rb
avo-3.3.0 lib/avo/concerns/hydration.rb
avo-3.2.3 lib/avo/concerns/hydration.rb
avo-3.2.2 lib/avo/concerns/hydration.rb
avo-3.2.1 lib/avo/concerns/hydration.rb
avo-3.2.0 lib/avo/concerns/hydration.rb
avo-3.1.7 lib/avo/concerns/hydration.rb
avo-3.1.6 lib/avo/concerns/hydration.rb
avo-3.1.5 lib/avo/concerns/hydration.rb
avo-3.1.4 lib/avo/concerns/hydration.rb
avo-3.1.3 lib/avo/concerns/hydration.rb
avo-3.1.2 lib/avo/concerns/hydration.rb
avo-3.1.1 lib/avo/concerns/hydration.rb
avo-3.1.0 lib/avo/concerns/hydration.rb
avo-3.0.8 lib/avo/concerns/hydration.rb
avo-3.0.7 lib/avo/concerns/hydration.rb
avo-3.0.6 lib/avo/concerns/hydration.rb
avo-3.0.5 lib/avo/concerns/hydration.rb