Ask how to fetch readonly associations
This commit is contained in:
parent
ef62a18ac9
commit
de9541a0df
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue