Skip to content

Commit

Permalink
expect application controller to be called application_controller, an…
Browse files Browse the repository at this point in the history
…d fallback to application if not
  • Loading branch information
jamesgolick committed Feb 20, 2009
1 parent fad211f commit fae8470
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/resource_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
require_dependency 'application'
begin
require_dependency 'application_controller'
rescue LoadError => e
require_dependency 'application'
end

module ResourceController
ACTIONS = [:index, :show, :new_action, :create, :edit, :update, :destroy].freeze
Expand Down
File renamed without changes.

0 comments on commit fae8470

Please sign in to comment.