Sha256: cbbd4215dccdfa160b19e8953a0738d41b34c8a23df606b6b3636c3e62894313

Contents?: true

Size: 291 Bytes

Versions: 3

Compression:

Stored size: 291 Bytes

Contents

module Stachio
  class ApplicationController < ActionController::Base

    protected

    def readonly
      Stachio.readonly
    end

    def permission
      return true unless readonly
      flash[:notice] = "Templates are readonly"
      redirect_to :action => :index
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
stachio-0.2.1 app/controllers/stachio/application_controller.rb
stachio-0.2.0 app/controllers/stachio/application_controller.rb
stachio-0.1.0 app/controllers/stachio/application_controller.rb