Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Gemified. fix.

  • Loading branch information...
commit 18423cbd4d166a55ccf524dd6628922d8568468d 1 parent f017c86
@uu authored
Showing with 25 additions and 4 deletions.
  1. +20 −0 Gemfile.lock
  2. +1 −1  init.rb
  3. +4 −3 lib/rails_datatables.rb
View
20 Gemfile.lock
@@ -0,0 +1,20 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ git (1.2.5)
+ jeweler (1.5.2)
+ bundler (~> 1.0.0)
+ git (>= 1.2.5)
+ rake
+ rake (0.8.7)
+ rcov (0.9.9)
+ shoulda (2.11.3)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ bundler (~> 1.0.0)
+ jeweler (~> 1.5.2)
+ rcov
+ shoulda
View
2  init.rb
@@ -1 +1 @@
-ActionView::Base.send :include, RailsDatatables
+#ActionView::Base.send :include, RailsDatatables
View
7 lib/rails_datatables.rb
@@ -1,5 +1,6 @@
-module RailsDatatables
- def datatable(columns, opts={})
+module ActionView
+ module Helpers
+ def datatable(columns, opts={})
sort_by = opts[:sort_by] || nil
additional_data = opts[:additional_data] || {}
search = opts[:search].present? ? opts[:search].to_s : "true"
@@ -114,5 +115,5 @@ def formatted_columns(columns)
end
end
-
+end
# EOF
Please sign in to comment.
Something went wrong with that request. Please try again.