Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated to Rails 3.2.1

  • Loading branch information...
commit de91be136cba992a683b6c9a3d412d39b7040315 1 parent e6bc668
@miloops authored
View
2  Gemfile
@@ -1,6 +1,6 @@
source "http://rubygems.org"
-gem "rails", "3.1.1"
+gem "rails", "3.2.1"
gem 'will_paginate'
gem "ya2yaml"
View
2  app/models/tolk/locale.rb
@@ -1,6 +1,6 @@
module Tolk
class Locale < ActiveRecord::Base
- set_table_name "tolk_locales"
+ self.table_name = "tolk_locales"
MAPPING = {
'ar' => 'Arabic',
View
2  app/models/tolk/phrase.rb
@@ -1,6 +1,6 @@
module Tolk
class Phrase < ActiveRecord::Base
- set_table_name "tolk_phrases"
+ self.table_name = "tolk_phrases"
validates_uniqueness_of :key
View
2  app/models/tolk/translation.rb
@@ -1,6 +1,6 @@
module Tolk
class Translation < ActiveRecord::Base
- set_table_name "tolk_translations"
+ self.table_name = "tolk_translations"
scope :containing_text, lambda {|query| where("tolk_translations.text LIKE ?", "%#{query}%") }
View
2  test/integration/authentication_test.rb
@@ -27,6 +27,6 @@ def teardown
protected
def encode_credentials(username, password)
- "Basic #{ActiveSupport::Base64.encode64("#{username}:#{password}")}"
+ "Basic #{Base64.encode64("#{username}:#{password}")}"
end
end

1 comment on commit de91be1

@w-A-L-L-e

Thanks! Love tolk and great it works in new rails version now!

Please sign in to comment.
Something went wrong with that request. Please try again.