Class: Rails::Generators::DatatableGenerator
- Inherits:
-
Base
- Object
- Base
- Rails::Generators::DatatableGenerator
- Defined in:
- lib/generators/rails/datatable_generator.rb
Instance Method Summary collapse
Instance Method Details
#datatable_name ⇒ Object
16 17 18 |
# File 'lib/generators/rails/datatable_generator.rb', line 16 def datatable_name datatable_path.classify end |
#generate_datatable ⇒ Object
10 11 12 13 14 |
# File 'lib/generators/rails/datatable_generator.rb', line 10 def generate_datatable template 'datatable.rb', File.join( 'app/datatables', "#{datatable_path}.rb" ) end |