Sha256: 4c811a4b85b8a355920933d682f0c3a2bf91e529b3c9f76d33c48c45655348df
Contents?: true
Size: 853 Bytes
Versions: 1
Compression:
Stored size: 853 Bytes
Contents
module Harvesting module Models class User < HarvestRecord attributed :id, :first_name, :last_name, :email, :telephone, :timezone, :has_access_to_all_future_projects, :is_contractor, :is_admin, :is_project_manager, :can_see_rates, :can_create_invoices, :can_create_projects, :is_active, :weekly_capacity, :default_hourly_rate, :cost_rate, :roles, :avatar_url, :created_at, :updated_at def path @attributes['id'].nil? ? "users" : "users/#{@attributes['id']}" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
harvesting-0.3.0 | lib/harvesting/models/user.rb |