Class: Users::SavedReply
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Users::SavedReply
- Defined in:
- app/models/users/saved_reply.rb
Constant Summary
Constants inherited from ApplicationRecord
Constants included from ResetOnUnionError
ResetOnUnionError::MAX_RESET_PERIOD
Class Method Summary collapse
Methods inherited from ApplicationRecord
cached_column_list, #create_or_load_association, declarative_enum, default_select_columns, id_in, id_not_in, iid_in, pluck_primary_key, primary_key_in, #readable_by?, safe_ensure_unique, safe_find_or_create_by, safe_find_or_create_by!, #to_ability_name, underscore, where_exists, where_not_exists, with_fast_read_statement_timeout, without_order
Methods included from SensitiveSerializableHash
Class Method Details
.find_saved_reply(user_id:, id:) ⇒ Object
15 16 17 |
# File 'app/models/users/saved_reply.rb', line 15 def self.find_saved_reply(user_id:, id:) ::Users::SavedReply.find_by(user_id: user_id, id: id) end |