Module: CanTango::Api::Options
- Included in:
- Ability::Account, Ability::User
- Defined in:
- lib/cantango/api/options.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.options_list ⇒ Object
11 12 13 |
# File 'lib/cantango/api/options.rb', line 11 def self. [:session, :request, :params, :controller, :domain, :cookies] end |
Instance Method Details
#ability_options ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/cantango/api/options.rb', line 3 def opts = {} .each do |option| opts.merge!(option => send(option)) if respond_to? option, true end opts end |