module JumpIn::Authentication::ClassMethods

CLASS METHODS

Public Instance Methods

jumpin_callback(callback, jumpin_method) click to toggle source
# File lib/jump_in/authentication.rb, line 60
def jumpin_callback(callback, jumpin_method)
  jumpin_constant = callback.upcase
  unless self.constants.include?(jumpin_constant)
    const_set(jumpin_constant, [])
  end
  const_get(jumpin_constant) << jumpin_method
end
jumpin_use(persistence:) click to toggle source
# File lib/jump_in/authentication.rb, line 68
def jumpin_use(persistence:)
  persistence.each do |symbol|
    include(JumpIn::Authentication::Persistence
      .const_get(symbol.capitalize))
  end
end