Sha256: 4060f4c796e5e6ae52a991d74b07934667cfebe50baae4ba55ad1184f589af7a

Contents?: true

Size: 325 Bytes

Versions: 2

Compression:

Stored size: 325 Bytes

Contents

class ApplicationController < ActionController::Base
  protect_from_forgery

  around_filter :locale_context

  def locale_context &block
    params[:locale].present? ? I18n.with_locale(params[:locale], &block) : block.call
  end

  def has_puffer_access? namespace
    true
  end

  def current_puffer_user
  	nil
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
puffer_pages-0.5.1 spec/dummy/app/controllers/application_controller.rb
puffer_pages-0.5.0 spec/dummy/app/controllers/application_controller.rb