Sha256: 3440e94fc1e059decbbf0e1ce044a79d13dc378ac1bd7f6c0f0358e01fc5c1ca

Contents?: true

Size: 301 Bytes

Versions: 21

Compression:

Stored size: 301 Bytes

Contents

module CanTango
  module Api
    module Common
      include CanTango::Api::Attributes

      def create_ability candidate, opts = {}
        CanTango.config.ability.factory_build candidate, opts
      end

      def category label
        config.models.by_category label
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
cantango-0.9.4.7 lib/cantango/api/common.rb
cantango-0.9.4.6 lib/cantango/api/common.rb
cantango-0.9.4.5 lib/cantango/api/common.rb
cantango-0.9.4.3 lib/cantango/api/common.rb
cantango-0.9.4.2 lib/cantango/api/common.rb
cantango-0.9.4.1 lib/cantango/api/common.rb
cantango-0.9.4 lib/cantango/api/common.rb
cantango-0.9.3.2 lib/cantango/api/common.rb
cantango-0.8.9.5 lib/cantango/api/common.rb
cantango-0.8.9.4 lib/cantango/api/common.rb
cantango-0.8.9.3 lib/cantango/api/common.rb
cantango-0.8.9.2 lib/cantango/api/common.rb
cantango-0.8.9.1 lib/cantango/api/common.rb
cantango-0.8.9 lib/cantango/api/common.rb
cantango-0.8.8.1 lib/cantango/api/common.rb
cantango-0.8.8 lib/cantango/api/common.rb
cantango-0.8.7 lib/cantango/api/common.rb
cantango-0.8.6.2 lib/cantango/api/common.rb
cantango-0.8.6.1 lib/cantango/api/common.rb
cantango-0.8.6 lib/cantango/api/common.rb