We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61eccf1 commit 1fb7f1dCopy full SHA for 1fb7f1d
app/controllers/dashboard_controller.rb
@@ -21,8 +21,6 @@ def index
21
private
22
23
def inventory
24
- return @inventory if defined? @inventory
25
-
26
- @inventory = current_organization.nil? ? nil : View::Inventory.new(current_organization.id)
+ @inventory ||= View::Inventory.new(current_organization.id)
27
end
28
0 commit comments