Class: TinyPaginate::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#installObject



5
6
7
8
9
10
11
12
13
# File 'lib/generators/tiny_paginate/install_generator.rb', line 5

def install
  initializer("tiny_paginate.rb") do
    <<-RUBY
   # frozen_string_literal: true

   # TinyPaginate.max_records_per_page = 30 # uncomment to change(default = 30)
    RUBY
  end
end