Sha256: a925eb5c5480a7ea25a6902a94995a4571e40de70b21f89cc6b67bf20f397849
Contents?: true
Size: 445 Bytes
Versions: 9
Compression:
Stored size: 445 Bytes
Contents
module CanTango module Api module Options def ability_options opts = {} options_list.each do |option| opts.merge!(option => send(option)) if respond_to? option, true end opts end def self.options_list [:session, :request, :params, :controller, :domain, :cookies] end def options_list CanTango::Api::Options.options_list end end end end
Version data entries
9 entries across 9 versions & 1 rubygems