foodsoft/app/controllers/stock_changes_controller.rb

9 lines
309 B
Ruby
Raw Normal View History

2013-07-09 21:46:04 +02:00
#encoding: utf-8
class StockChangesController < ApplicationController
before_filter :find_stock_article
def index
2013-07-09 21:49:39 +02:00
@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?
2013-07-09 21:46:04 +02:00
end
end