Sha256: cf7e39ef24a56e68baa8a5f9a8541d20a141a4b7ce2e1ed39b067ac876aa87f1
Contents?: true
Size: 546 Bytes
Versions: 4
Compression:
Stored size: 546 Bytes
Contents
module CanTango::Api module Common def create_ability candidate, opts = {} ability = default_ability_class.new candidate, opts config.ability.factory_build ability, opts.merge(:modes => execution_modes) end def category label config.models.by_category label end protected def default_ability_class CanTango.config.ability.default_class end def execution_modes CanTango.config.ability.modes || [:no_cache] end def config CanTango.config end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
cantango-api-0.1.3 | lib/cantango/api/common.rb |
cantango-api-0.1.2 | lib/cantango/api/common.rb |
cantango-api-0.1.1 | lib/cantango/api/common.rb |
cantango-api-0.1.0 | lib/cantango/api/common.rb |