Skip to content

Commit

Permalink
activemodel: Add ActiveModel::API (#695)
Browse files Browse the repository at this point in the history
ActiveModel::API has been added since v7.0.

refs: rails/rails#43223
  • Loading branch information
tk0miya authored Oct 28, 2024
1 parent aa5dfa9 commit dcc30ea
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions gems/activemodel/7.0/activemodel-7.0.rbs
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
module ActiveModel
module API
extend ActiveSupport::Concern
include ActiveModel::AttributeAssignment
include ActiveModel::Validations
extend ActiveModel::Validations::ClassMethods
include ActiveModel::Conversion
extend ActiveModel::Conversion::ClassMethods

def persisted?: () -> bool
end
end

module ActiveModel
class Error
CALLBACKS_OPTIONS: ::Array[:if | :unless | :on | :allow_nil | :allow_blank | :strict]
Expand Down

0 comments on commit dcc30ea

Please sign in to comment.