Sha256: c4b34e77cb9b941f407e41c6738901ec5f7f1effcae3614bed4774b0ecb456ed
Contents?: true
Size: 351 Bytes
Versions: 7
Compression:
Stored size: 351 Bytes
Contents
class Ecm::News::ItemsController < Ecm::Pictures::Configuration.base_controller.constantize def index @items = Ecm::News::Item.published.where(:locale => I18n.locale.to_s).order("published_at DESC").page(params[:page]).per(5) end def show @item = Ecm::News::Item.published.where(:locale => I18n.locale.to_s).find(params[:id]) end end
Version data entries
7 entries across 7 versions & 1 rubygems