Sha256: 7c088823db6fb38ea3851b1b83d4088b68f194d565ad15ccadc73a2d59fcee44
Contents?: true
Size: 316 Bytes
Versions: 4
Compression:
Stored size: 316 Bytes
Contents
module CanTango::Api module User def self.included base apis.each do |api| base.send :include, clazz(api) end end def self.apis [:ability, :can, :scope, :session] end def self.clazz api "CanTango::Api::#{api.to_s.camelize}::User".constantize end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
cantango-api-0.1.3 | lib/cantango/api/user.rb |
cantango-api-0.1.2 | lib/cantango/api/user.rb |
cantango-api-0.1.1 | lib/cantango/api/user.rb |
cantango-api-0.1.0 | lib/cantango/api/user.rb |