Sha256: f300109e64d95ff0f63281cc2658a5398332dfccd5f1b92b3b8abbb83ab103f9
Contents?: true
Size: 391 Bytes
Versions: 11
Compression:
Stored size: 391 Bytes
Contents
module CanTango module Api module User autoload_modules :Ability, :Can, :Scope module All def self.included base [:Ability, :Can, :Scope].each do |api| base.send :include, clazz(api) end end def clazz api ("CanTango::Api::User::" << api.to_s.camelize).constantize end end end end end
Version data entries
11 entries across 11 versions & 1 rubygems