From 72a37afddb7b905ae1914e4a85dedf842e1e67aa Mon Sep 17 00:00:00 2001 From: rulingcom Date: Fri, 8 Nov 2013 17:37:55 +0800 Subject: [PATCH] announcment fixed for frontend --- config/mongoid.yml | 4 ++-- vendor/built_in_modules/announcement/init.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/mongoid.yml b/config/mongoid.yml index 49a7167c..d20c4727 100644 --- a/config/mongoid.yml +++ b/config/mongoid.yml @@ -8,7 +8,7 @@ defaults: &defaults development: <<: *defaults - database: test_site + database: orbit_site_new @@ -24,4 +24,4 @@ production: # password: <%= ENV['MONGOID_PASSWORD'] %> # database: <%= ENV['MONGOID_DATABASE'] %> <<: *defaults - database: test_site + database: orbit_site_new diff --git a/vendor/built_in_modules/announcement/init.rb b/vendor/built_in_modules/announcement/init.rb index 3d840e74..0a559dc7 100644 --- a/vendor/built_in_modules/announcement/init.rb +++ b/vendor/built_in_modules/announcement/init.rb @@ -37,7 +37,7 @@ module Announcement image :image field :postdate link_field :title,{:method => 'panel_announcement_front_end_bulletin_path',:args=>:self} - link_field :bulletin_category_with_title,{:method => 'panel_announcement_front_end_bulletins_path',:args=>{:category_id => [:bulletin_category,:id]}} + link_field :bulletin_category_with_title,{:method => 'panel_announcement_front_end_bulletins_path',:args=>{:category_id => [:category,:id]}} field :subtitle link_to_more 'panel_announcement_front_end_bulletins_path',:title_i18n=> 'more_plus' end