Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: jamesgolick/resource_controller
...
head fork: anupamc/resource_controller
compare: master
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 5 files changed
  • 0 commit comments
  • 1 contributor
Commits on Feb 07, 2011
Anupam Choudhury Moved contents of rails/init.rb into init.rb to avoid Rails 3 depreca…
…tion warnings
2fb196f
Anupam Choudhury Updated the RDOC file b3cdd43
View
2  README.rdoc
@@ -1,3 +1,5 @@
+=[FIXED] Moved contents of rails/init.rb into init.rb to avoid Rails 3 deprecation warnings.
+
= Resource Controller
resource_controller makes RESTful controllers easier, more maintainable, and super readable. With the RESTful controller pattern hidden away, you can focus on what makes your controller special.
View
9 init.rb
@@ -1 +1,8 @@
-require File.dirname(__FILE__)+'/rails/init.rb'
+require 'resource_controller'
+
+ActionController::Base.class_eval do
+ include Urligence
+ helper_method :smart_url
+
+ extend ResourceController::ActionControllerExtension
+end
View
2  lib/resource_controller.rb
@@ -23,4 +23,4 @@ def resource_controller(*args)
end
end
-require File.dirname(__FILE__)+'/../rails/init.rb' unless ActionController::Base.include?(Urligence)
+require File.dirname(__FILE__)+'/../init.rb' unless ActionController::Base.include?(Urligence)
View
6 rails/init.rb
@@ -1,6 +0,0 @@
-ActionController::Base.class_eval do
- include Urligence
- helper_method :smart_url
-
- extend ResourceController::ActionControllerExtension
-end
View
1  resource_controller.gemspec
@@ -65,7 +65,6 @@ Gem::Specification.new do |s|
"lib/resource_controller/response_collector.rb",
"lib/resource_controller/singleton.rb",
"lib/urligence.rb",
- "rails/init.rb",
"test/Rakefile",
"test/app/controllers/accounts_controller.rb",
"test/app/controllers/application_controller.rb",

No commit comments for this range

Something went wrong with that request. Please try again.