Sha256: 4e4f06fa39a73329af144cea755ab3044a73b06a07ea0d3346401848648a123d

Contents?: true

Size: 485 Bytes

Versions: 24

Compression:

Stored size: 485 Bytes

Contents

module RailsConnector::LiquidSupport

  class FieldValueDrop < Liquid::Drop
    attr_accessor :__value, :__marker

    def initialize(obj, field, value, marker)
      @obj, @field, @__value, @__marker = obj, field, value, marker
    end

    def to_s
      action_view = @context.registers[:action_view]
      safe_value = __value.to_s.html_safe
      if __marker
        action_view.edit_marker(@obj, @field) { safe_value }
      else
        safe_value
      end
    end

  end

end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
infopark_rails_connector-6.9.1.3.22208381 lib/rails_connector/liquid_support/field_value_drop.rb
infopark_rails_connector-6.9.0.3.197272233 lib/rails_connector/liquid_support/field_value_drop.rb
infopark_rails_connector-6.8.3.174.51542603 lib/rails_connector/liquid_support/field_value_drop.rb
infopark_rails_connector-6.8.3.115.227021242 lib/rails_connector/liquid_support/field_value_drop.rb
infopark_rails_connector-6.8.3.73.75172665 lib/rails_connector/liquid_support/field_value_drop.rb
infopark_rails_connector-6.8.3.2.153416031 lib/rails_connector/liquid_support/field_value_drop.rb
infopark_rails_connector-6.8.3.67.110847540 lib/rails_connector/liquid_support/field_value_drop.rb
infopark_rails_connector-6.8.3.1.23895778 lib/rails_connector/liquid_support/field_value_drop.rb
infopark_rails_connector-6.8.2.36.82613853 lib/rails_connector/liquid_support/field_value_drop.rb
infopark_rails_connector-6.8.2.7.128454143 lib/rails_connector/liquid_support/field_value_drop.rb
infopark_rails_connector-6.8.1.26.236500544 lib/rails_connector/liquid_support/field_value_drop.rb
infopark_rails_connector-6.8.1 lib/rails_connector/liquid_support/field_value_drop.rb
infopark_rails_connector-6.8.0.539.93842523 lib/rails_connector/liquid_support/field_value_drop.rb
infopark_rails_connector-6.8.0.529.114081979 lib/rails_connector/liquid_support/field_value_drop.rb
infopark_rails_connector-6.8.0.518.30999728 lib/rails_connector/liquid_support/field_value_drop.rb
infopark_rails_connector-6.8.0.515.34928522 lib/rails_connector/liquid_support/field_value_drop.rb
infopark_rails_connector-6.8.0.498.46559598 lib/rails_connector/liquid_support/field_value_drop.rb
infopark_rails_connector-6.8.0.480.261594408 lib/rails_connector/liquid_support/field_value_drop.rb
infopark_rails_connector-6.8.0.444.171626367 lib/rails_connector/liquid_support/field_value_drop.rb
infopark_rails_connector-6.8.0.406.131718077 lib/rails_connector/liquid_support/field_value_drop.rb