module Harvesting module Models class Task < HarvestRecord attributed :id, :name, :billable_by_default, :default_hourly_rate, :is_default, :is_active, :created_at, :updated_at def path @attributes['id'].nil? ? "tasks" : "tasks/#{@attributes['id']}" end end end end