Fix relations error in tags
This commit is contained in:
1 parent
778a85ca2b
commit
d0c2856a3a
6 files changed
+8
-8
No files matched your search
@@ -8,7 +8,7 @@ class Bulletin
|
||||
has_one :title, :class_name => "I18nVariable", :as => :language_value, :autosave => true, :dependent => :destroy
|
||||
has_one :subtitle, :class_name => "I18nVariable", :as => :language_value, :autosave => true, :dependent => :destroy
|
||||
has_one :text, :class_name => "I18nVariable", :as => :language_value, :autosave => true, :dependent => :destroy
|
||||
has_and_belongs_to_many :tags
|
||||
has_and_belongs_to_many :tags, :class_name => "ModuleAppTag"
|
||||
|
||||
field :postdate , :type => Date
|
||||
field :deadline , :type => Date
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
class ModuleAppTag < Tag
|
||||
|
||||
has_and_belongs_to_many :bulletins
|
||||
|
||||
end
|
||||
Reference in new issue
Block a user