Sha256: 191ef46b543ab80bf4118a791ccf8a78d1f2dbcab0ecc22329ee1457c5a18a8d

Contents?: true

Size: 456 Bytes

Versions: 9

Compression:

Stored size: 456 Bytes

Contents

class RePublicationsController < ApplicationController    
  helper :rules_engine 
  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

9 entries across 9 versions & 1 rubygems

Version Path
rules_engine-0.2.0 rails_generators/templates/app/controllers/re_publications_controller.rb
rules_engine-0.1.10 rails_generators/templates/app/controllers/re_publications_controller.rb
rules_engine-0.1.9 rails_generators/templates/app/controllers/re_publications_controller.rb
rules_engine-0.1.8 rails_generators/templates/app/controllers/re_publications_controller.rb
rules_engine-0.1.7 rails_generators/templates/app/controllers/re_publications_controller.rb
rules_engine-0.1.6 rails_generators/templates/app/controllers/re_publications_controller.rb
rules_engine-0.1.5 rails_generators/templates/app/controllers/re_publications_controller.rb
rules_engine-0.1.4 rails_generators/templates/app/controllers/re_publications_controller.rb
rules_engine-0.1.3 rails_generators/templates/app/controllers/re_publications_controller.rb