fasterer: Use attr_reader for reading ivars.

This commit is contained in:
Reinier Balt 2015-08-19 14:52:13 +02:00
parent 0d224a5fe9
commit 9f81e1a5c3

View file

@ -1,7 +1,7 @@
module Todos
class TodoCreateParamsHelper
attr_reader :new_project_created, :new_context_created
attr_reader :new_project_created, :new_context_created, :attributes
def initialize(params, user)
set_params(params)
@ -46,10 +46,6 @@ module Todos
end
end
def attributes
@attributes
end
def show_from
@attributes['show_from']
end