module Foyer::Controller::Helpers::ClassMethods

Public Instance Methods

set_user_finder(&blk) click to toggle source
# File lib/foyer/controller/helpers.rb, line 45
def set_user_finder(&blk) # rubocop:disable Style/AccessorMethodName
  fail ':user_finder must accept 1 argument (user_id)' unless blk.arity == 1
  Foyer.user_finder = blk
end