lib/action_controller.rb in actionpack-1.5.0 vs lib/action_controller.rb in actionpack-1.5.1
- old
+ new
@@ -20,19 +20,16 @@
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#++
$:.unshift(File.dirname(__FILE__))
+$:.unshift(File.dirname(__FILE__) + "/../../activesupport/lib")
begin
- require 'active_support'
+ require 'active_support'
rescue LoadError
- begin
- require File.dirname(__FILE__) + '/../../activesupport/lib/active_support'
- rescue LoadError
- require 'rubygems'
- require_gem 'activesupport'
- end
+ require 'rubygems'
+ require_gem 'activesupport'
end
require 'action_controller/base'
require 'action_controller/rescue'
require 'action_controller/benchmarking'