Skip to content

Commit

Permalink
Merge pull request heartcombo#31 from kreeger/master
Browse files Browse the repository at this point in the history
Updating ActiveSupport patching to use #on_load; moved gem dependencies to gemspec.
  • Loading branch information
José Valim committed Nov 24, 2012
2 parents 23958b4 + b85e5c1 commit 15d0679
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
11 changes: 0 additions & 11 deletions Gemfile
@@ -1,14 +1,3 @@
source :rubygems

gemspec

gem "actionpack", "~> 3.2.0"
gem "activesupport", "~> 3.2.0"

if RUBY_VERSION < "1.9"
gem "ruby-debug"
else
gem "test-unit"
end

gem "mocha"
13 changes: 12 additions & 1 deletion has_scope.gemspec
Expand Up @@ -24,4 +24,15 @@ Gem::Specification.new do |s|
s.extra_rdoc_files = [
"README.md"
]
end

s.add_runtime_dependency "actionpack", "~> 3.2.0"
s.add_runtime_dependency "activesupport", "~> 3.2.0"
s.add_development_dependency "mocha", "~> 0.12.0"
s.add_development_dependency "rake"
if RUBY_VERSION < "1.9"
s.add_development_dependency "rdoc"
s.add_development_dependency "ruby-debug"
else
s.add_development_dependency "test-unit"
end
end
2 changes: 1 addition & 1 deletion lib/has_scope.rb
Expand Up @@ -181,7 +181,7 @@ def current_scopes
end
end

ActionController::Base.instance_eval do
ActiveSupport.on_load :action_controller do
include HasScope
helper_method :current_scopes
end

0 comments on commit 15d0679

Please sign in to comment.