fix relation between bulletin and category (news also)
This commit is contained in:
		
							parent
							
								
									04a23db745
								
							
						
					
					
						commit
						243c9e2946
					
				|  | @ -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] | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue