Skip to content
Browse files

fix warning: method redefined

  • Loading branch information...
1 parent 2bc1ac7 commit df08271f9c044b7614d70baf4b818f1a79f4a6e1 @kennyj kennyj committed with Rafael Mendonça França
Showing with 2 additions and 2 deletions.
  1. +1 −1 activerecord/test/cases/store_test.rb
  2. +1 −1 activerecord/test/models/admin/user.rb
View
2 activerecord/test/cases/store_test.rb
@@ -136,7 +136,7 @@ class StoreTest < ActiveRecord::TestCase
end
test "all stored attributes are returned" do
- assert_equal [:color, :homepage, :favorite_food, :phone_number], Admin::User.stored_attributes[:settings]
+ assert_equal [:color, :homepage, :favorite_food], Admin::User.stored_attributes[:settings]
end
test "stores_attributes are class level settings" do
View
2 activerecord/test/models/admin/user.rb
@@ -1,7 +1,7 @@
class Admin::User < ActiveRecord::Base
belongs_to :account
store :settings, :accessors => [ :color, :homepage ]
- store_accessor :settings, :favorite_food, :phone_number
+ store_accessor :settings, :favorite_food
store :preferences, :accessors => [ :remember_login ]
store :json_data, :accessors => [ :height, :weight ], :coder => JSON
store :json_data_empty, :accessors => [ :is_a_good_guy ], :coder => JSON

0 comments on commit df08271

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