From 04d3e177d5d5eaa65bb4d5659de2424d9b3de1a4 Mon Sep 17 00:00:00 2001 From: chris Date: Wed, 20 Mar 2013 17:45:08 +0800 Subject: [PATCH] Fix typo in core lib Change i18n for more link in announcement init --- lib/orbit_core_lib.rb | 2 +- vendor/built_in_modules/announcement/init.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/orbit_core_lib.rb b/lib/orbit_core_lib.rb index d0b0dc78..a6c19f5e 100644 --- a/lib/orbit_core_lib.rb +++ b/lib/orbit_core_lib.rb @@ -46,7 +46,7 @@ module OrbitCoreLib def self.included(base) base.instance_eval("field :disable,type: Boolean,:default => false") - base.instance_eval("scope :all, where(:disable.in [false, nil, ''])") + base.instance_eval("scope :all, where(:disable.in => [false, nil, ''])") base.instance_eval("scope :admin_manager_all,find(:all)") base.define_singleton_method :find do |*args| diff --git a/vendor/built_in_modules/announcement/init.rb b/vendor/built_in_modules/announcement/init.rb index 898999e8..e990feb9 100644 --- a/vendor/built_in_modules/announcement/init.rb +++ b/vendor/built_in_modules/announcement/init.rb @@ -27,7 +27,7 @@ module Announcement 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_to_more 'panel_announcement_front_end_bulletins_path',:title_i18n=> 'announcement.default_widget.to_more' + link_to_more 'panel_announcement_front_end_bulletins_path',:title_i18n=> 'more_plus' end categories_query 'BulletinCategory.all'