fix relation between bulletin and category (news also)
This commit is contained in:
1 parent
04a23db745
commit
243c9e2946
2 files changed
+2
-2
No files matched your search
@@ -17,7 +17,7 @@ class BulletinCategory
|
||||
|
||||
has_one :i18n_variable, :as => :language_value, :autosave => true, :dependent => :destroy
|
||||
|
||||
has_many :bulletins
|
||||
has_many :bulletins,:dependent => :destroy
|
||||
|
||||
def pp_object
|
||||
i18n_variable[I18n.locale]
|
||||
|
||||
@@ -17,7 +17,7 @@ class NewsBulletinCategory
|
||||
|
||||
has_one :i18n_variable, :as => :language_value, :autosave => true, :dependent => :destroy
|
||||
|
||||
has_many :news_bulletins
|
||||
has_many :news_bulletins,:dependent => :destroy
|
||||
|
||||
def pp_object
|
||||
i18n_variable[I18n.locale]
|
||||
|
||||
Reference in new issue
Block a user