Class: DeviseBootstrapViews::Railtie

Inherits:
Rails::Railtie
  • Object
show all
Defined in:
lib/devise-bootstrap-views.rb

Overview

:nodoc:

Class Method Summary collapse

Class Method Details

.pattern_from(args) ⇒ Object



20
21
22
23
# File 'lib/devise-bootstrap-views.rb', line 20

def self.pattern_from(args)
  array = Array(args || [])
  array.blank? ? '*' : "{#{array.join ','}}"
end