Sha256: 70cd5071551cfb3ecf98a90f51d3498848ec9ef90f8fcef46ef8621b7b4392bf
Contents?: true
Size: 405 Bytes
Versions: 14
Compression:
Stored size: 405 Bytes
Contents
module CanTango module Api module UserAccount 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::UserAccount::" << api.to_s.camelize).constantize end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems