Sha256: 192cb9223c768427560cc03c3f2a68363412106fb6a0a896477e5d4a536bb9b5

Contents?: true

Size: 884 Bytes

Versions: 30

Compression:

Stored size: 884 Bytes

Contents

module RailsConnector

  module MarkerHelper

    def edit_marker(obj, attr, options = {}, &block)
      if Configuration.editor_interface_enabled?
        default_value = options.delete(:default_value)

        if block_given?
          content = block.call(obj, attr)
          content = default_value || raw(" ") if content.blank?
        end

        tag_type = options.delete(:tag) || :span
        content_tag(
          tag_type,
          content.to_s,
          options
        )
      else
        block_given? ? block.call(obj, attr) : nil
      end
    end

    def marker_menu(left=0, top=0, &block)
    end

    def marker_menu_target(tag_name, options = {}, &block)
      content_tag(
        tag_name,
        capture(&block),
        options
      )
    end

    def include_edit_marker_support
    end

    def render_marker_code
    end

  private

  end

end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
infopark_cloud_connector-6.8.0.518.30999728 app/helpers/rails_connector/marker_helper.rb
infopark_cloud_connector-6.8.0.515.34928522 app/helpers/rails_connector/marker_helper.rb
infopark_cloud_connector-6.8.0.498.46559598 app/helpers/rails_connector/marker_helper.rb
infopark_cloud_connector-6.8.0.480.261594408 app/helpers/rails_connector/marker_helper.rb
infopark_cloud_connector-6.8.0.444.171626367 app/helpers/rails_connector/marker_helper.rb
infopark_cloud_connector-6.8.0.406.131718077 app/helpers/rails_connector/marker_helper.rb
infopark_cloud_connector-6.8.0.356.19698103 app/helpers/rails_connector/marker_helper.rb
infopark_cloud_connector-6.8.0.348.160665197 app/helpers/rails_connector/marker_helper.rb
infopark_cloud_connector-6.8.0.328.4a753fc app/helpers/rails_connector/marker_helper.rb
infopark_cloud_connector-6.8.0.322.c003f11 app/helpers/rails_connector/marker_helper.rb