Skip to content

Commit

Permalink
Merge pull request #181 from bdewater/ar-blank-present
Browse files Browse the repository at this point in the history
Type blank?/present? for Active Record models
  • Loading branch information
KaanOzkan authored Oct 23, 2023
2 parents 725c54c + 301e50e commit f20fca3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rbi/annotations/activerecord.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -183,4 +183,10 @@ class ActiveRecord::Base
).void
end
def self.after_rollback(*args, **options, &block); end

sig { returns(FalseClass) }
def blank?; end

sig { returns(TrueClass) }
def present?; end
end

0 comments on commit f20fca3

Please sign in to comment.