Sha256: 0fe851d7fcb9b569a2e4e70d036c2c33e4b79dc8a99aa5e0a969f7df6ce443aa

Contents?: true

Size: 541 Bytes

Versions: 7

Compression:

Stored size: 541 Bytes

Contents

module SketchilyTag
  module ActionViewBaseInstanceMethods
    def sketchily_tag(name, value = nil, options = {})
      self.render(
        :partial => "sketchily/sketchily_tag",
        :locals => {
          :name => name,
          :id => sanitize_to_id(name),
          :value => value,
          :options => options
        }
      )
    end

    def svg_edit_tag(name, value = nil, options = {})
      sketchily_tag(name, value, options)
    end
  end
end

ActionView::Base.send :include, SketchilyTag::ActionViewBaseInstanceMethods

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sketchily-4.0.1 lib/sketchily/sketchily_tag.rb~
sketchily-4.0.0 lib/sketchily/sketchily_tag.rb~
sketchily-1.5.0 lib/sketchily/sketchily_tag.rb
sketchily-1.4.1 lib/sketchily/sketchily_tag.rb
sketchily-1.4.0 lib/sketchily/sketchily_tag.rb
sketchily-1.3.0 lib/sketchily/sketchily_tag.rb
sketchily-1.2.0 lib/sketchily/sketchily_tag.rb