diff options
| author | hukl <contact@smyck.org> | 2009-02-26 14:16:57 +0100 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-02-26 14:16:57 +0100 |
| commit | e04151525fa6963f2e55444a156fd47f24423e51 (patch) | |
| tree | 5e1fb5138837cc7f80649bcfaff87bd1a06f746c /app/models | |
| parent | 3190145bf0ebca1bdeff036c60ce6280c9d24c70 (diff) | |
the locale stuff as well as the cloning should work now entirely as expected although the cloning itself isn't really a beauty
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 |
