diff --git a/app/controllers/stock_changes_controller.rb b/app/controllers/stock_changes_controller.rb index 57aee78e..d596a383 100644 --- a/app/controllers/stock_changes_controller.rb +++ b/app/controllers/stock_changes_controller.rb @@ -3,6 +3,6 @@ class StockChangesController < ApplicationController before_filter :find_stock_article def index - @stock_changes = @stock_article.stock_changes(:readonly => true).order('stock_changes.created_at DESC') + @stock_changes = @stock_article.stock_changes(:readonly => true).order('stock_changes.created_at DESC') # The readonly has no effect, what is the proper way to achieve that? end end