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

Version Path
cantango-0.9.4.7 lib/cantango/api/options.rb
cantango-0.9.4.6 lib/cantango/api/options.rb
cantango-0.9.4.5 lib/cantango/api/options.rb
cantango-0.9.4.3 lib/cantango/api/options.rb
cantango-0.9.4.2 lib/cantango/api/options.rb
cantango-0.9.4.1 lib/cantango/api/options.rb
cantango-0.9.4 lib/cantango/api/options.rb
cantango-0.9.3.2 lib/cantango/api/options.rb
cantango-0.8.9.5 lib/cantango/api/options.rb