Ask how to fetch readonly associations

This commit is contained in:
Julius 2013-07-09 21:49:39 +02:00
parent ef62a18ac9
commit de9541a0df

View file

@ -3,6 +3,6 @@ class StockChangesController < ApplicationController
before_filter :find_stock_article before_filter :find_stock_article
def index 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
end end