Class: DeviseI18nBootstrap::Railtie

Inherits:
Rails::Railtie
  • Object
show all
Defined in:
lib/devise_i18n_bootstrap/engine.rb

Class Method Summary collapse

Class Method Details

.pattern_from(args) ⇒ Object



15
16
17
18
# File 'lib/devise_i18n_bootstrap/engine.rb', line 15

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