mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-18 00:00: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
|
module Todos
|
||||||
class TodoCreateParamsHelper
|
class TodoCreateParamsHelper
|
||||||
|
|
||||||
attr_reader :new_project_created, :new_context_created
|
attr_reader :new_project_created, :new_context_created, :attributes
|
||||||
|
|
||||||
def initialize(params, user)
|
def initialize(params, user)
|
||||||
set_params(params)
|
set_params(params)
|
||||||
|
|
@ -46,10 +46,6 @@ module Todos
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def attributes
|
|
||||||
@attributes
|
|
||||||
end
|
|
||||||
|
|
||||||
def show_from
|
def show_from
|
||||||
@attributes['show_from']
|
@attributes['show_from']
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue