Class: AjaxdatatableGenerator

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

Instance Method Summary collapse

Instance Method Details

#generate_ajaxdatatableObject



5
6
7
# File 'lib/generators/ajaxdatatable/ajaxdatatable_generator.rb', line 5

def generate_ajaxdatatable
  template 'datatable.rb', File.join('app/datatables', "#{model.tableize}_datatable.rb")
end