Skip to content

Commit

Permalink
add ActiveRecord::Calculations module to ActiveRecord::Base
Browse files Browse the repository at this point in the history
  • Loading branch information
tasuku-lab280 committed Nov 21, 2024
1 parent 0c458c0 commit dba85b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions gems/activerecord/6.0/_test/activerecord-generated.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class Article < ActiveRecord::Base
User.preload(:address, friends: [:address, { followers: :users }]) # steep:ignore FallbackAny
User.in_order_of(:id, [1, 5, 3])
User.offset(5).limit(10)
User.count(:id)

t = User.arel_table
User.limit(10).select(:id, "name", t[:age].as("years"), t[:email])
1 change: 1 addition & 0 deletions gems/activerecord/6.0/activerecord.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ module ActiveRecord
extend ::ActiveRecord::AttributeMethods::Write::ClassMethods
extend ::ActiveRecord::Attributes::ClassMethods
extend ::ActiveRecord::AutosaveAssociation::ClassMethods
extend ::ActiveRecord::Calculations
extend ::ActiveRecord::Core::ClassMethods
extend ::ActiveRecord::CounterCache::ClassMethods
extend ::ActiveRecord::Inheritance::ClassMethods
Expand Down

0 comments on commit dba85b1

Please sign in to comment.