storing default_attribute on the editable_element if a default attribute has been parsed.

This commit is contained in:
Dirk Kelly 2011-03-02 14:38:32 +08:00
parent 95cd56cba2
commit ea81025d33
2 changed files with 2 additions and 0 deletions
app/models
lib/locomotive/liquid/tags/editable

View File

@ -6,6 +6,7 @@ class EditableElement
field :slug
field :block
field :default_content
field :default_attribute
field :hint
field :disabled, :type => Boolean, :default => false
field :assignable, :type => Boolean, :default => true

View File

@ -26,6 +26,7 @@ module Locomotive
:block => @context[:current_block].try(:name),
:slug => @slug,
:hint => @options[:hint],
:default_attribute => @options[:default],
:default_content => default_content,
:assignable => @options[:assignable],
:disabled => false,