File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
ajax-datatables-rails/datatable Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,9 @@ Metrics/LineLength:
3232Metrics/BlockLength :
3333 Max : 30
3434
35+ Metrics/MethodLength :
36+ Max : 15
37+
3538Metrics/ClassLength :
3639 Max : 130
3740
Original file line number Diff line number Diff line change @@ -18,10 +18,8 @@ class Column
1818
1919 include Search
2020 include Order
21+ prepend DateFilter unless AjaxDatatablesRails . old_rails?
2122
22- unless AjaxDatatablesRails . old_rails?
23- prepend DateFilter
24- end
2523
2624 def initialize ( datatable , index , options )
2725 @datatable = datatable
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ module Rails
66 module Generators
77 class DatatableGenerator < ::Rails ::Generators ::Base
88 desc 'Creates a *_datatable model in the app/datatables directory.'
9- source_root File . expand_path ( '../ templates' , __FILE__ )
9+ source_root File . expand_path ( 'templates' , __dir__ )
1010 argument :name , type : :string
1111
1212 def generate_datatable
You can’t perform that action at this time.
0 commit comments