Sha256: 15d4682a6e896ef82573a30bb1b522ad9deec9ed71f648e9cd3728000c7324bd

Contents?: true

Size: 442 Bytes

Versions: 2

Compression:

Stored size: 442 Bytes

Contents

class Gringotts::ApplicationController < ApplicationController
  
  before_filter :load_gringotts
  before_filter :ensure_not_locked

private
  
  def load_gringotts
    @gringotts = Gringotts::Vault.for_owner(gringotts_owner)
  end
  
  def ensure_not_locked
    redirect_to gringotts_engine.locked_path if @gringotts.locked?
  end
  
  def accepts_strong_params?
    params.respond_to?(:require) && params.respond_to?(:permit)
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gringotts-0.6.7 app/controllers/gringotts/application_controller.rb
gringotts-0.6.5 app/controllers/gringotts/application_controller.rb