Project

General

Profile

« Previous | Next » 

Revision df886c98

Added by Ohad Levy over 12 years ago

  • ID df886c98f48ce50b0dfe87a2a24ddd92dce1fb13

Feature #1184 - allow to save array based settings

this also moves the setting page to use inline edit

View differences:

app/helpers/application_helper.rb
klass = options[:type]
update_url = options[:update_url] || url_for(object)
opts = { :title => "Click to edit", "data-url" => update_url, :class => klass,
opts = { :title => "Click to edit", "data-url" => update_url, :class => "editable #{klass}",
:name => name, "data-field" => property, :value => value}
content_tag_for :span, object, opts do

Also available in: Unified diff