Comments removal

pull/6827/head
Sebastian Schuster 11 years ago
parent 540cabdc13
commit 68457f4bea
  1. 6
      app/controllers/cost_types_controller.rb
  2. 3
      app/models/entry.rb

@ -35,8 +35,6 @@ class CostTypesController < ApplicationController
end
def update
# TODO: method is copied over from edit
# remove code as appropriate
@cost_type.attributes = permitted_params.cost_type
if @cost_type.save
@ -51,8 +49,6 @@ class CostTypesController < ApplicationController
end
def new
# TODO: method is copied over from edit
# remove code as appropriate
@cost_type = CostType.new()
@cost_type.rates.build({:valid_from => Date.today}) if @cost_type.rates.empty?
@ -61,8 +57,6 @@ class CostTypesController < ApplicationController
end
def create
# TODO: method is copied over from edit
# remove code as appropriate
@cost_type = CostType.new(permitted_params.cost_type)
if @cost_type.save

@ -1,6 +1,3 @@
require_dependency "time_entry"
require_dependency "cost_entry"
module Entry
[TimeEntry, CostEntry].each { |e| e.send :include, self }

Loading…
Cancel
Save