Permalink
Browse files

Rails 3.1 fixes

  • Loading branch information...
1 parent ccc3c39 commit 1a070bb4a5e5ef49e0d50e8f5c16476ce272d62f @ksz2k ksz2k committed Jan 20, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 config/routes.rb
  2. +2 −2 lib/tiny_mce_helper.rb
View
@@ -1,4 +1,4 @@
-ActionController::Routing::Routes.draw do
+Rails.application.routes.draw do
resources :attachments do
collection do
get :manage
@@ -39,10 +39,10 @@ def tiny_mce_init(options = @tiny_mce_options)
alias tiny_mce tiny_mce_init
def javascript_include_tiny_mce
- javascript_include_tag RAILS_ENV == 'development' ? "tiny_mce/tiny_mce_src" : "tiny_mce/tiny_mce"
+ javascript_include_tag Rails.env == 'development' ? "tiny_mce/tiny_mce_src" : "tiny_mce/tiny_mce"
end
def javascript_include_tiny_mce_if_used
javascript_include_tiny_mce if @uses_tiny_mce
end
-end
+end

0 comments on commit 1a070bb

Please sign in to comment.