Sha256: 8dda747d3ef1f38425c0672473041088f0b6329cbdd37ca84327e61f6da46602

Contents?: true

Size: 257 Bytes

Versions: 4

Compression:

Stored size: 257 Bytes

Contents

module Maily
  class ApplicationController < Maily.base_controller.constantize

    before_filter :maily_enabled?

    layout 'maily/application'

    private

    def maily_enabled?
      Maily.enabled || raise('Maily: engine disabled!')
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
maily-0.3.2 app/controllers/maily/application_controller.rb
maily-0.3.1 app/controllers/maily/application_controller.rb
maily-0.3.0 app/controllers/maily/application_controller.rb
maily-0.1.0 app/controllers/maily/application_controller.rb