Created
May 11, 2012 00:59
-
-
Save jackdempsey/2656858 to your computer and use it in GitHub Desktop.
Resolvers gem
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 module Resolvers | |
2 autoload :MobileFallbackResolver, 'resolvers/mobile_fallback_resolver' | |
3 | |
4 #ActiveSupport.on_load(:action_controller) do | |
5 #append_view_path(MobileFallbackResolver.new('app/views')) | |
6 #end | |
7 | |
8 # class Railtie < ::Rails::Railtie | |
9 # initializer 'resolvers.mobile_fallback_resolver' do |app| | |
10 # ActiveSupport.on_load(:action_controller) do | |
11 # append_view_path(MobileFallbackResolver.new('app/views')) | |
12 # end | |
13 # end | |
14 # end | |
15 end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Both commented out blocks seem to work correctly. Is one preferred over another, or better yet, is there a more correct way to do something like this?