class Preseason::Config::Authentication

Attributes

library[RW]

Public Instance Methods

active_admin?() click to toggle source
# File lib/preseason/config/authentication.rb, line 16
def active_admin?
  library == :active_admin
end
ask_user() click to toggle source
# File lib/preseason/config/authentication.rb, line 8
def ask_user
  if yes? "Will you be using ActiveAdmin? [y/n]"
    self.library = :active_admin
  elsif yes? "Ok then, how about Devise? [y/n]"
    self.library = :devise
  end
end
devise?() click to toggle source
# File lib/preseason/config/authentication.rb, line 20
def devise?
  library == :devise || active_admin?
end