ActionController::HasMobileViews::ClassMethods

Public Instance Methods

has_mobile_views(opts = {}) click to toggle source
# File lib/has_mobile_views/has_mobile_views.rb, line 8
def has_mobile_views opts = {}
  class_eval do
    send :include, InstanceMethods

    helper_method :mobile_request?
    helper_method :mobile_browser?

    before_filter :prepend_view_path_if_mobile
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.