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