Skip to content

Commit

Permalink
ActiveSupport defined? bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rosylilly committed Jan 26, 2013
1 parent d8cb7c2 commit ca5b314
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/dicer/railtie/action_controller.rb
Expand Up @@ -23,7 +23,10 @@ def context_for(action, context_class = nil, &context_define)

def default_contexts
@default_contexts ||= {}.tap do |hash|
hash.default = ApplicationContext if defined?(ApplicationContext)
begin
hash.default = ::ApplicationContext
rescue NameError
end
end
end
end
Expand Down

0 comments on commit ca5b314

Please sign in to comment.