Sha256: 8cac29799156ead74eb56190829eef658c4e416ea881d859c9fd00e24be9343e
Contents?: true
Size: 499 Bytes
Versions: 3
Compression:
Stored size: 499 Bytes
Contents
# # The REST API model object representing the currently authenticated user. # class User < RestApi::Base singleton schema do string :login, :plan_id end include Capabilities has_many :keys has_many :domains has_one :consumed_gear_sizes, :class_name => 'rest_api/base/attribute_hash' def plan_id super or 'freeshift' end def plan @plan ||= Aria::MasterPlan.cached.find plan_id end def plan=(plan) @plan_id = plan.is_a?(String) ? plan : plan.id end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
openshift-origin-console-1.3.4 | app/models/user.rb |
openshift-origin-console-1.3.3 | app/models/user.rb |
openshift-origin-console-1.3.2 | app/models/user.rb |