Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

spree_easy_admin_redirect

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spree_easy_admin_redirect

  • 2.3.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

SpreeEasyAdminRedirect

Provides an easy way to redirect an user after login in.

Installation

Add spree_easy_admin_redirect to your Gemfile:

gem 'spree_easy_admin_redirect', git: 'git@github.com:Serabe/spree_easy_admin_redirect.git', branch: '2-3-stable'

Bundle your dependencies and run the installation generator:

bundle
bundle exec rails g spree_easy_admin_redirect:install

The generator does nothing but showing a message. It is provided because it is what spree extensions do and somebody might not read this README.

Overriding the redirection

For overriding the redirection path you just need to redefine Spree::Admin::RootController#admin_root_redirect_path. If you want a more complex behaviour, you might override Spree::Admin::RootController#index.

Testing

First bundle your dependencies, then run rake. rake will default to building the dummy app if it does not exist, then it will run specs. The dummy app can be regenerated by using rake test_app.

bundle
bundle exec rake

When testing your applications integration with this extension you may use it's factories. Simply add this require statement to your spec_helper:

require 'spree_easy_admin_redirect/factories'

Copyright (c) 2014 [name of extension creator], released under the New BSD License

FAQs

Package last updated on 10 Sep 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc