module PrefixedIds::Finder
Public Instance Methods
find(*ids)
click to toggle source
Calls superclass method
# File lib/prefixed_ids.rb, line 74 def find(*ids) super(*ids.map { |id| _prefix_id.decode(id, fallback: true) }) end
has_many(*args, &block)
click to toggle source
Calls superclass method
# File lib/prefixed_ids.rb, line 82 def has_many(*args, &block) options = args.extract_options! options[:extend] = Array(options[:extend]).push(ClassMethods) super(*args, **options, &block) end
relation()
click to toggle source
Calls superclass method
# File lib/prefixed_ids.rb, line 78 def relation super.tap { |r| r.extend ClassMethods } end