module Shrine::Plugins::Activerecord::AttacherClassMethods

  1. lib/shrine/plugins/activerecord.rb

Methods

Public Instance

  1. find_record

Public Instance methods

find_record (record_class, record_id)

Needed by the backgrounding plugin.

[show source]
# File lib/shrine/plugins/activerecord.rb, line 123
def find_record(record_class, record_id)
  record_class.where(id: record_id).first
end