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.8.5.1 lib/cantango/api/common.rb