Sha256: 0c984c6844611332842a72e10bc64c012de9e3478b0263cd332638d6d2df64ea
Contents?: true
Size: 448 Bytes
Versions: 1
Compression:
Stored size: 448 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 private def options_list self.class.options_list end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cantango-0.8.9.4 | lib/cantango/api/options.rb |