Class: AjaxdatatableGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- AjaxdatatableGenerator
- Defined in:
- lib/generators/ajaxdatatable/ajaxdatatable_generator.rb
Instance Method Summary collapse
Instance Method Details
#generate_ajaxdatatable ⇒ Object
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 |