Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't amc graft if Squeel is loaded (see #4)

  • Loading branch information...
commit 6a39ce6d422ee75aa6466970766605c3ed8b6ce7 1 parent 1787325
@ernie ernie authored
View
3  lib/ransack/adapters/active_record/3.0/join_dependency.rb
@@ -7,7 +7,8 @@ module JoinDependency
def self.included(base)
base.class_eval do
- alias_method_chain :graft, :ransack
+ # Squeel's graft is more capable than Ransack's.
+ alias_method_chain :graft, :ransack unless defined?(Squeel)
end
end
View
3  lib/ransack/adapters/active_record/join_dependency.rb
@@ -7,7 +7,8 @@ module JoinDependency
def self.included(base)
base.class_eval do
- alias_method_chain :graft, :ransack
+ # Squeel's graft is more capable than Ransack's.
+ alias_method_chain :graft, :ransack unless defined?(Squeel)
end
end
View
2  lib/ransack/version.rb
@@ -1,3 +1,3 @@
module Ransack
- VERSION = "0.5.2"
+ VERSION = "0.5.3"
end
Please sign in to comment.
Something went wrong with that request. Please try again.