Embed attribute_fields and sub_roles

This commit is contained in:
Christophe Vilayphiou committed 2012-01-24 11:57:27 +08:00
1 parent 04f51f2d98
commit bfd55277d7
4 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@ class Attribute
field :built_in, :type => Boolean, :default => false
field :disabled, :type => Boolean, :default => false
has_many :attribute_fields, :autosave => true, :dependent => :destroy
embeds_many :attribute_fields, :cascade_callbacks => true
has_one :i18n_variable, :as => :language_value, :autosave => true, :dependent => :destroy
accepts_nested_attributes_for :attribute_fields, :allow_destroy => true