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

- old
+ new

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