Sha256: 05a808b166312d9bb06fac8b5f2f5f1f4f7edbfbdd11302b780beb019eef0e3f

Contents?: true

Size: 894 Bytes

Versions: 1

Compression:

Stored size: 894 Bytes

Contents

module RailsConnector

  module MarkerHelper # :nodoc:

    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

1 entries across 1 versions & 1 rubygems

Version Path
infopark_cloud_connector-6.8.0.210.ed204b0 app/helpers/rails_connector/marker_helper.rb