Sha256: e0262acc502e5ac6ed5e33d2b704c31ab024bcabe3d8ab6b82e4e4080fc2b08c

Contents?: true

Size: 994 Bytes

Versions: 2

Compression:

Stored size: 994 Bytes

Contents

<% # Clients of this partial must supply the following variables:
   # template
   # object_name
   # method
   # options %>

<% sketchily_tag = Rails::VERSION::MAJOR >= 4 ?
                     ActionView::Helpers::Tags::HiddenField.new(object_name, method, template,
                       options.except(*Sketchily::SKETCHILY_OPTIONS)).render :
                     ActionView::Helpers::InstanceTag.new(object_name, method, template, options.delete(:object))
                       .to_input_field_tag("hidden", options.except(*Sketchily::SKETCHILY_OPTIONS))

   options = {:id => sketchily_tag.send(:tag_id),
              :value => sketchily_tag.send(:value, sketchily_tag.object)}.merge(options) %>

<%= render :partial => "sketchily/embed",
           :formats => :html,
           :locals => options.slice(*Sketchily::OPTIONS) %>

<%= Rails::VERSION::MAJOR >= 4 ? sketchily_tag.render :
      sketchily_tag.to_input_field_tag("hidden", options.except(*Sketchily::SKETCHILY_OPTIONS)) %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sketchily-4.0.1 app/views/sketchily/_sketchily.html.erb~
sketchily-4.0.0 app/views/sketchily/_sketchily.html.erb~