mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 23:30:12 +01:00
fasterer: Use attr_reader for reading ivars.
This commit is contained in:
parent
0d224a5fe9
commit
9f81e1a5c3
1 changed files with 1 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue