Skip to content
Browse files

Remove deprecated `set_table_name'

  • Loading branch information...
1 parent b8b257c commit afcdd5dfdec7d003ccd355b5f009c038ecc50197 @SamWhited SamWhited committed Jan 10, 2013
View
4 app/models/radiant/config.rb
@@ -66,8 +66,8 @@ class Config < ActiveRecord::Base
# # to display an appropriate checkbox, text field or select box with label as above:
# edit_setting('admin.name)
#
-
- set_table_name "config"
+
+ self.table_name = 'config'
after_save :update_cache
attr_reader :definition
View
2 db/migrate/010_merge_behaviors_and_pages.rb
@@ -1,6 +1,6 @@
class MergeBehaviorsAndPages < ActiveRecord::Migration
class OldPage < ActiveRecord::Base
- set_table_name 'pages'
+ self.table_name = 'pages'
end
@@page_map = {
View
6 vendor/plugins/dataset/spec/models.rb
@@ -2,7 +2,7 @@ class Person < ActiveRecord::Base
attr_protected :last_name
end
class Place < ActiveRecord::Base
- set_table_name 'places_table'
+ self.table_name = 'places_table'
end
class Thing < ActiveRecord::Base; end
class Note < ActiveRecord::Base
@@ -13,6 +13,6 @@ class NorthCarolina < State; end
module Nested
class Place < ActiveRecord::Base
- set_table_name 'places_table'
+ self.table_name = 'places_table'
end
-end
+end

0 comments on commit afcdd5d

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