Module: Shrine::Plugins::Mongoid::AttacherClassMethods
- Defined in:
- lib/shrine/plugins/mongoid.rb
Instance Method Summary collapse
-
#find_record(record_class, record_id) ⇒ Object
Needed by the backgrounding plugin.
Instance Method Details
#find_record(record_class, record_id) ⇒ Object
Needed by the backgrounding plugin.
47 48 49 |
# File 'lib/shrine/plugins/mongoid.rb', line 47 def find_record(record_class, record_id) record_class.where(id: record_id).first end |