module OpenInApp::ControllerHelper::ClassMethods
Public Instance Methods
open_in_app(options={})
click to toggle source
# File lib/open_in_app/controller_helper.rb, line 51 def open_in_app(options={}) open_in_app_options.merge!(options.reject { |key,| not [:if, :unless].include?(key.to_sym) }) filter_options = options.reject { |key,| [:if, :unless, :prepend].include?(key.to_sym) } if prepend_filter = options.delete(:prepend) prepend_before_filter prepend_filter, :open_in_app, filter_options else before_filter :open_in_app, filter_options end end
open_in_app_options()
click to toggle source
# File lib/open_in_app/controller_helper.rb, line 61 def open_in_app_options @open_in_app_options ||= {} end