Permalink
Browse files

Gemified. fix.

  • Loading branch information...
1 parent f017c86 commit 18423cbd4d166a55ccf524dd6628922d8568468d @uu committed Jan 31, 2012
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
@@ -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
@@ -1 +1 @@
-ActionView::Base.send :include, RailsDatatables
+#ActionView::Base.send :include, RailsDatatables
View
@@ -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

0 comments on commit 18423cb

Please sign in to comment.