diff options
Diffstat (limited to 'app/models')
| -rw-r--r-- | app/models/page.rb | 7 |
1 files changed, 0 insertions, 7 deletions
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 | |||
| 38 | :order => "#{options[:order_by]} #{options[:order_direction]}") | 38 | :order => "#{options[:order_by]} #{options[:order_direction]}") |
| 39 | end | 39 | end |
| 40 | 40 | ||
| 41 | def self.with_locale l, &block | ||
| 42 | old_locale = self.locale | ||
| 43 | self.locale = l | ||
| 44 | yield | ||
| 45 | self.locale = old_locale | ||
| 46 | end | ||
| 47 | |||
| 48 | # Instance Methods | 41 | # Instance Methods |
| 49 | end \ No newline at end of file | 42 | end \ No newline at end of file |
