From e04151525fa6963f2e55444a156fd47f24423e51 Mon Sep 17 00:00:00 2001 From: hukl Date: Thu, 26 Feb 2009 14:16:57 +0100 Subject: the locale stuff as well as the cloning should work now entirely as expected although the cloning itself isn't really a beauty --- app/models/page.rb | 7 ------- 1 file changed, 7 deletions(-) (limited to 'app/models') diff --git a/app/models/page.rb b/app/models/page.rb index ea481a6..aba974a 100644 --- a/app/models/page.rb +++ b/app/models/page.rb @@ -38,12 +38,5 @@ class Page < ActiveRecord::Base :order => "#{options[:order_by]} #{options[:order_direction]}") end - def self.with_locale l, &block - old_locale = self.locale - self.locale = l - yield - self.locale = old_locale - end - # Instance Methods end \ No newline at end of file -- cgit v1.3