Skip to content

Commit b2ff6b0

Browse files
wangjohnrafaelfranca
authored andcommitted
Changing the models.
1 parent 8c684dc commit b2ff6b0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+159
-159
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
class Admin::Account < ActiveRecord::Base
1+
class Admin::Account < ApplicationModel
22
has_many :users
33
end
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
class Admin::ClassNameThatDoesNotFollowCONVENTIONS < ActiveRecord::Base
1+
class Admin::ClassNameThatDoesNotFollowCONVENTIONS < ApplicationModel
22
self.table_name = :randomly_named_table
33
end

activerecord/test/models/admin/user.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class Admin::User < ActiveRecord::Base
1+
class Admin::User < ApplicationModel
22
class Coder
33
def initialize(default = {})
44
@default = default
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class Aircraft < ActiveRecord::Base
1+
class Aircraft < ApplicationModel
22
self.pluralize_table_names = false
33
has_many :engines, :foreign_key => "car_id"
44
end
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
class ARUnit2Model < ActiveRecord::Base
1+
class ARUnit2Model < ApplicationModel
22
self.abstract_class = true
33
end

activerecord/test/models/author.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class Author < ActiveRecord::Base
1+
class Author < ApplicationModel
22
has_many :posts
33
has_many :serialized_posts
44
has_one :post
@@ -186,7 +186,7 @@ def raise_exception(object)
186186
end
187187
end
188188

189-
class AuthorAddress < ActiveRecord::Base
189+
class AuthorAddress < ApplicationModel
190190
has_one :author
191191

192192
def self.destroyed_author_address_ids
@@ -198,7 +198,7 @@ def self.destroyed_author_address_ids
198198
end
199199
end
200200

201-
class AuthorFavorite < ActiveRecord::Base
201+
class AuthorFavorite < ApplicationModel
202202
belongs_to :author
203203
belongs_to :favorite_author, :class_name => "Author"
204204
end
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class AutoId < ActiveRecord::Base
1+
class AutoId < ApplicationModel
22
self.table_name = "auto_id_tests"
33
self.primary_key = "auto_id"
44
end

activerecord/test/models/binary.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
class Binary < ActiveRecord::Base
1+
class Binary < ApplicationModel
22
end

activerecord/test/models/bird.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class Bird < ActiveRecord::Base
1+
class Bird < ApplicationModel
22
belongs_to :pirate
33
validates_presence_of :name
44

activerecord/test/models/book.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class Book < ActiveRecord::Base
1+
class Book < ApplicationModel
22
has_many :authors
33

44
has_many :citations, :foreign_key => 'book1_id'

0 commit comments

Comments
 (0)