aboutsummaryrefslogtreecommitdiffstats
path: root/app/models
diff options
context:
space:
mode:
authorMarek <keraml@gmail.com>2011-05-19 11:56:46 +0200
committerMarek <keraml@gmail.com>2011-05-19 11:56:46 +0200
commit5c58ba20b052dd19efb30aff500dd3158496ca14 (patch)
tree45590eb7e1c32549fc6357ea3b0a6c2b4ccd4004 /app/models
parent2d37cbf479ce809fa11760d65b48ace8de64591b (diff)
downloadrefinerycms-blog-5c58ba20b052dd19efb30aff500dd3158496ca14.tar.gz
refinerycms-blog-5c58ba20b052dd19efb30aff500dd3158496ca14.tar.bz2
refinerycms-blog-5c58ba20b052dd19efb30aff500dd3158496ca14.zip
For backwards compatibility must be approximate_ascii and strip_non_ascii by default false
Diffstat (limited to 'app/models')
-rw-r--r--app/models/blog_category.rb4
-rw-r--r--app/models/blog_post.rb4
2 files changed, 4 insertions, 4 deletions
diff --git a/app/models/blog_category.rb b/app/models/blog_category.rb
index d813655..263982c 100644
--- a/app/models/blog_category.rb
+++ b/app/models/blog_category.rb
@@ -9,8 +9,8 @@ class BlogCategory < ActiveRecord::Base
has_friendly_id :title, :use_slug => true,
:default_locale => (::Refinery::I18n.default_frontend_locale rescue :en),
- :approximate_ascii => RefinerySetting.find_or_set(:approximate_ascii, true, :scoping => 'blog'),
- :strip_non_ascii => RefinerySetting.find_or_set(:strip_non_ascii, true, :scoping => 'blog')
+ :approximate_ascii => RefinerySetting.find_or_set(:approximate_ascii, false, :scoping => 'blog'),
+ :strip_non_ascii => RefinerySetting.find_or_set(:strip_non_ascii, false, :scoping => 'blog')
def post_count
posts.select(&:live?).count
diff --git a/app/models/blog_post.rb b/app/models/blog_post.rb
index 224070d..d287c6f 100644
--- a/app/models/blog_post.rb
+++ b/app/models/blog_post.rb
@@ -23,8 +23,8 @@ class BlogPost < ActiveRecord::Base
has_friendly_id :title, :use_slug => true,
:default_locale => (::Refinery::I18n.default_frontend_locale rescue :en),
- :approximate_ascii => RefinerySetting.find_or_set(:approximate_ascii, true, :scoping => 'blog'),
- :strip_non_ascii => RefinerySetting.find_or_set(:strip_non_ascii, true, :scoping => 'blog')
+ :approximate_ascii => RefinerySetting.find_or_set(:approximate_ascii, false, :scoping => 'blog'),
+ :strip_non_ascii => RefinerySetting.find_or_set(:strip_non_ascii, false, :scoping => 'blog')
scope :by_archive, lambda { |archive_date|
where(['published_at between ? and ?', archive_date.beginning_of_month, archive_date.end_of_month])