Class: AdministrateTailwindTheme::Generators::Views::KaminariGenerator

Inherits:
ViewGenerator
  • Object
show all
Defined in:
lib/generators/administrate_tailwind_theme/views/kaminari_generator.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.template_source_pathObject



9
10
11
12
13
14
# File 'lib/generators/administrate_tailwind_theme/views/kaminari_generator.rb', line 9

def self.template_source_path
  File.expand_path(
    '../../../../app/views/kaminari',
    __dir__
  )
end

Instance Method Details

#copy_templateObject



18
19
20
21
22
23
24
25
26
# File 'lib/generators/administrate_tailwind_theme/views/kaminari_generator.rb', line 18

def copy_template
  copy_resource_template('_first_page')
  copy_resource_template('_gap')
  copy_resource_template('_last_page')
  copy_resource_template('_next_page')
  copy_resource_template('_page')
  copy_resource_template('_paginator')
  copy_resource_template('_prev_page')
end