SHIMADA Koji
null+****@clear*****
Wed Sep 26 08:36:06 JST 2012
SHIMADA Koji 2012-09-26 08:36:06 +0900 (Wed, 26 Sep 2012) New Revision: 029e697616d9936e3901994afd79a32c995089e8 https://github.com/logaling/logaling-server/commit/029e697616d9936e3901994afd79a32c995089e8 Log: Remove 'self' Modified files: app/decorators/user_config_decorator.rb Modified: app/decorators/user_config_decorator.rb (+2 -2) =================================================================== --- app/decorators/user_config_decorator.rb 2012-09-26 08:33:43 +0900 (5e2d0d5) +++ app/decorators/user_config_decorator.rb 2012-09-26 08:36:06 +0900 (45c79a0) @@ -1,11 +1,11 @@ # coding: utf-8 module UserConfigDecorator def mark_for(user_glossary) - self.same?(user_glossary) ? "★" : "☆" + same?(user_glossary) ? "★" : "☆" end def submit_path_for(user) - if self.new_record? + if new_record? user_configs_path(user) else user_config_path(user, self) -------------- next part -------------- An HTML attachment was scrubbed... Télécharger