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