Class: BulmaFormRails::Generators::PagyConfigGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/bulma_form_rails/pagy_config_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_pagy_configObject



10
11
12
# File 'lib/generators/bulma_form_rails/pagy_config_generator.rb', line 10

def copy_pagy_config
  copy_file File.join(Gem.loaded_specs['bulma_form_rails'].full_gem_path, 'lib', 'templates', 'config', 'initializers', 'pagy.rb'), File.join('config', 'initializers', 'pagy.rb')
end