# File lib/jpmobile/rails.rb, line 30 def self.included(base) base.class_eval do before_filter :register_mobile self._view_paths = self._view_paths.dup self.view_paths.unshift(Jpmobile::Resolver.new(File.join(Rails.root, "app/views"))) end end
# File lib/jpmobile/rails.rb, line 46 def disable_mobile_view! self.lookup_context.mobile = [] end
# File lib/jpmobile/rails.rb, line 39 def register_mobile if request.mobile # register mobile self.lookup_context.mobile = request.mobile.variants end end
[Validate]
Generated with the Darkfish Rdoc Generator 2.