Sha256: e3abccf48fa11307ccd52a8a12b63f4091552bdb1e5f3578076e50686b4a651a

Contents?: true

Size: 264 Bytes

Versions: 4

Compression:

Stored size: 264 Bytes

Contents

module Chili
  class ApplicationController  < ::ApplicationController
    before_filter :activate_feature

    private
    def activate_feature
      raise ActionController::RoutingError, 'Feature Disabled' unless self.class.parent.active?(self)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
chili-3.1.0 app/controllers/chili/application_controller.rb
chili-3.0.0 app/controllers/chili/application_controller.rb
chili-2.0.1 app/controllers/chili/application_controller.rb
chili-2.0.0 app/controllers/chili/application_controller.rb