Sha256: 676b68fc2661b5d0d361b7b1e897ba662467720fd8423ec21d1bcbb5258e16d7

Contents?: true

Size: 490 Bytes

Versions: 4

Compression:

Stored size: 490 Bytes

Contents

class RePublicationsController < ApplicationController    
  helper :rules_engine 
  layout RulesEngineView::Config.layout || 'rules_engine'

  # before_filter :login_required
  before_filter :rules_engine_reader_access_required,  :only => [:show]

  before_filter :only => [:show] do |controller|
    controller.re_load_model :re_plan
  end    

  def show
    @re_publications = RulesEngine::Publish.publisher.history(@re_plan.code, :page => params[:page] || 1, :per_page => 5)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rules_engine-0.3.3 app/controllers/re_publications_controller.rb
rules_engine-0.3.2 app/controllers/re_publications_controller.rb
rules_engine-0.3.1 app/controllers/re_publications_controller.rb
rules_engine-0.3.0 app/controllers/re_publications_controller.rb