Sha256: 04555d9ee3b0bfae5e1ea8823f09a9ff831edd068ca93e9392f82e67f236689c

Contents?: true

Size: 365 Bytes

Versions: 12

Compression:

Stored size: 365 Bytes

Contents

module Admin
  class AdminController < ActionController::Base


    protect_from_forgery
    helper_method :allow?
    layout :ajax_request

    

    private
      def ajax_request
        request.xhr? ? "admin/ajax" : "admin/application"    
      end

      ### TODO: Add your Authentication method here!
      def allow?(*args)
        true
      end

  end
end

Version data entries

12 entries across 6 versions & 1 rubygems

Version Path
unknown_admin-0.1.5 lib/generators/unknown_admin/install/templates/admin_controller.rb
unknown_admin-0.1.5 app/controllers/admin/admin_controller.rb
unknown_admin-0.1.4 app/controllers/admin/admin_controller.rb
unknown_admin-0.1.4 lib/generators/unknown_admin/install/templates/admin_controller.rb
unknown_admin-0.1.3 app/controllers/admin/admin_controller.rb
unknown_admin-0.1.3 lib/generators/unknown_admin/install/templates/admin_controller.rb
unknown_admin-0.1.2 app/controllers/admin/admin_controller.rb
unknown_admin-0.1.2 lib/generators/unknown_admin/install/templates/admin_controller.rb
unknown_admin-0.1.1 lib/generators/unknown_admin/install/templates/admin_controller.rb
unknown_admin-0.1.1 app/controllers/admin/admin_controller.rb
unknown_admin-0.1.0 app/controllers/admin/admin_controller.rb
unknown_admin-0.1.0 lib/generators/unknown_admin/install/templates/admin_controller.rb