Sha256: 21fcb4c5f40af5fa5b4b8fd0bf1dce010ec28ca633c9ff491ddf5ce727e38a26

Contents?: true

Size: 276 Bytes

Versions: 4

Compression:

Stored size: 276 Bytes

Contents

class AjaxdatatableGenerator < Rails::Generators::Base
  source_root File.expand_path('../templates', __FILE__)
  argument :model, type: :string

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

Version data entries

4 entries across 4 versions & 3 rubygems

Version Path
ajax-datatables-rails-coveralls-0.0.1 lib/generators/ajaxdatatable/ajaxdatatable_generator.rb
rails-datatables-0.0.2 lib/generators/ajaxdatatable/ajaxdatatable_generator.rb
rails-datatables-0.0.1 lib/generators/ajaxdatatable/ajaxdatatable_generator.rb
ajax-datatables-rails-0.0.1 lib/generators/ajaxdatatable/ajaxdatatable_generator.rb