fix relation between bulletin and category (news also)

This commit is contained in:
Matthew K. Fu JuYuan 2012-06-27 15:16:16 +08:00
parent 04a23db745
commit 243c9e2946
2 changed files with 2 additions and 2 deletions

View File

@ -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]

View File

@ -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]