Skip to content

Commit

Permalink
Better way to access controller constant. The previous way generates …
Browse files Browse the repository at this point in the history
…bug for modulized controllers
  • Loading branch information
lfcipriani committed Jun 22, 2010
1 parent f73d400 commit 750605d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/restfulie/server/action_controller/base.rb
Expand Up @@ -25,7 +25,7 @@ def call(env)
end

def include_restfulie?
defined?(Restfulie::Server::ActionController::Base) && controller_class_name.constantize.include?(Restfulie::Server::ActionController::Base)
defined?(Restfulie::Server::ActionController::Base) && self.include?(Restfulie::Server::ActionController::Base)
end
end

Expand Down

0 comments on commit 750605d

Please sign in to comment.