Sha256: c79e7cb5a2ff7df46492617c327328db5841f1ca6c3c63d33acacaa5e81de5df

Contents?: true

Size: 469 Bytes

Versions: 11

Compression:

Stored size: 469 Bytes

Contents

module PushType
  class AdminController < ActionController::Base

    layout 'push_type/admin'
    before_action :initial_breadcrumb
    helper_method :push_type_user

    # TODO - do I need to require all helpers
    helper PushType::Admin::Engine.helpers

    def info
      render layout: false
    end

    protected

    def push_type_user
      respond_to?(:current_user) ? current_user : nil
    end

    def initial_breadcrumb
      true
    end
    
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
push_type_admin-0.10.0 app/controllers/push_type/admin_controller.rb
push_type_admin-0.10.0.beta.5 app/controllers/push_type/admin_controller.rb
push_type_admin-0.10.0.beta.3 app/controllers/push_type/admin_controller.rb
push_type_admin-0.9.5 app/controllers/push_type/admin_controller.rb
push_type_admin-0.9.3 app/controllers/push_type/admin_controller.rb
push_type_admin-0.9.2 app/controllers/push_type/admin_controller.rb
push_type_admin-0.9.1 app/controllers/push_type/admin_controller.rb
push_type_admin-0.9.0 app/controllers/push_type/admin_controller.rb
push_type_admin-0.9.0.beta.4 app/controllers/push_type/admin_controller.rb
push_type_admin-0.9.0.beta.3 app/controllers/push_type/admin_controller.rb
push_type_admin-0.9.0.beta.2 app/controllers/push_type/admin_controller.rb