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-7.0.1 app/helpers/rails_connector/marker_helper.rb
infopark_cloud_connector-7.0.0 app/helpers/rails_connector/marker_helper.rb
infopark_cloud_connector-6.9.5 app/helpers/rails_connector/marker_helper.rb
infopark_cloud_connector-6.9.4 app/helpers/rails_connector/marker_helper.rb
infopark_cloud_connector-6.9.3.1.36404185 app/helpers/rails_connector/marker_helper.rb
infopark_cloud_connector-6.9.2.1.125136549 app/helpers/rails_connector/marker_helper.rb
infopark_cloud_connector-6.9.1.3.22208381 app/helpers/rails_connector/marker_helper.rb
infopark_cloud_connector-6.9.0.3.197272233 app/helpers/rails_connector/marker_helper.rb
infopark_cloud_connector-6.8.3.174.51542603 app/helpers/rails_connector/marker_helper.rb
infopark_cloud_connector-6.8.3.115.227021242 app/helpers/rails_connector/marker_helper.rb
infopark_cloud_connector-6.8.3.73.75172665 app/helpers/rails_connector/marker_helper.rb
infopark_cloud_connector-6.8.3.2.153416031 app/helpers/rails_connector/marker_helper.rb
infopark_cloud_connector-6.8.3.67.110847540 app/helpers/rails_connector/marker_helper.rb
infopark_cloud_connector-6.8.3.1.23895778 app/helpers/rails_connector/marker_helper.rb
infopark_cloud_connector-6.8.2.36.82613853 app/helpers/rails_connector/marker_helper.rb
infopark_cloud_connector-6.8.2.7.128454143 app/helpers/rails_connector/marker_helper.rb
infopark_cloud_connector-6.8.1.26.236500544 app/helpers/rails_connector/marker_helper.rb
infopark_cloud_connector-6.8.1 app/helpers/rails_connector/marker_helper.rb
infopark_cloud_connector-6.8.0.539.93842523 app/helpers/rails_connector/marker_helper.rb
infopark_cloud_connector-6.8.0.529.114081979 app/helpers/rails_connector/marker_helper.rb