Improved code layout.
This commit is contained in:
parent
06a32ad071
commit
aa4fffad32
1 changed files with 5 additions and 7 deletions
|
@ -28,9 +28,7 @@ class ObjectLookup < ApplicationModel
|
||||||
end
|
end
|
||||||
|
|
||||||
# create
|
# create
|
||||||
lookup = create(
|
lookup = create(name: name)
|
||||||
name: name
|
|
||||||
)
|
|
||||||
@@cache_object[ name ] = lookup.id
|
@@cache_object[ name ] = lookup.id
|
||||||
lookup.id
|
lookup.id
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue