mirror of
https://github.com/kaminari/kaminari.git
synced 2022-11-09 13:44:37 -05:00
16 lines
428 B
Ruby
16 lines
428 B
Ruby
module Kaminari
|
|
module Generators
|
|
class ConfigGenerator < Rails::Generators::Base
|
|
source_root File.expand_path(File.join(File.dirname(__FILE__), 'templates'))
|
|
|
|
desc <<DESC
|
|
Description:
|
|
Copies Kaminari configuration file to your application's initializer directory.
|
|
DESC
|
|
|
|
def copy_config_file
|
|
template 'kaminari_config.rb', 'config/initializers/kaminari_config.rb'
|
|
end
|
|
end
|
|
end
|
|
end
|