lib/harvesting/models/user.rb in harvesting-0.2.0 vs lib/harvesting/models/user.rb in harvesting-0.3.0

- old
+ new

@@ -1,25 +1,31 @@ module Harvesting module Models - class User < Base + class User < HarvestRecord attributed :id, :first_name, :last_name, :email, :telephone, :timezone, - :weekly_capacity, :has_access_to_all_future_projects, :is_contractor, :is_admin, :is_project_manager, :can_see_rates, - :can_create_projects, :can_create_invoices, + :can_create_projects, :is_active, - :created_at, - :updated_at, + :weekly_capacity, + :default_hourly_rate, + :cost_rate, :roles, - :avatar_url + :avatar_url, + :created_at, + :updated_at + + def path + @attributes['id'].nil? ? "users" : "users/#{@attributes['id']}" + end end end end