Sha256: 94afd7e5c036cfe780155238f8f09835484cd9598b98a1e2d7c8b075d9a17222

Contents?: true

Size: 864 Bytes

Versions: 2

Compression:

Stored size: 864 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)) :
                     ActionView::Helpers::InstanceTag.new(object_name, method, template, options.delete(:object))

   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