Module: RbsDevise::Devise

Defined in:
lib/rbs_devise/devise.rb

Defined Under Namespace

Classes: Generator

Class Method Summary collapse

Class Method Details

.available?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/rbs_devise/devise.rb', line 8

def self.available?
  ::Devise.mappings.any?
end

.generateObject



12
13
14
15
16
# File 'lib/rbs_devise/devise.rb', line 12

def self.generate
  raise unless available?

  Generator.new.generate
end