10000 built a basic generator · GUI/ajax-datatables-rails@72bb325 · GitHub
[go: up one dir, main page]

Skip to content

Commit 72bb325

Browse files
author
Joel Quenneville
committed
built a basic generator
1 parent e4f446b commit 72bb325

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

lib/ajax-datatables-rails.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
require 'rails'
2+
13
class AjaxDatatablesRails
24

35
VERSION = '0.0.1'

lib/generators/ajaxdatatable/USAGE

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Description:
2+
The cancan:ability generator creates an Ability class in the models
3+
directory. You can move this file anywhere you want as long as it
4+
is in the load path.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
class AjaxdatatableGenerator < Rails::Generators::Base
2+
source_root File.expand_path('../templates', __FILE__)
3+
4+
def generate_ajaxdatatable
5+
puts "test"
6+
# create_file "app/datatables/datatable.rb", "# test"
7+
end
8+
end

0 commit comments

Comments
 (0)
0