Module: Portfolio

Defined in:
lib/portfolio/custom_failure.rb,
lib/portfolio.rb,
lib/portfolio/engine.rb,
lib/portfolio/version.rb,
app/models/portfolio/site.rb,
app/models/portfolio/site_item.rb,
app/models/portfolio/admin_user.rb,
app/models/portfolio/social_link.rb,
app/models/portfolio/site_project.rb,
app/helpers/portfolio/sites_helper.rb,
app/models/portfolio/site_item_tag.rb,
app/models/portfolio/site_menu_link.rb,
app/models/portfolio/site_item_image.rb,
app/models/portfolio/site_social_link.rb,
app/helpers/portfolio/site_items_helper.rb,
app/models/portfolio/site_item_category.rb,
app/helpers/portfolio/application_helper.rb,
app/controllers/portfolio/sites_controller.rb,
lib/generators/portfolio/install_generator.rb,
app/controllers/portfolio/admin/api_controller.rb,
app/controllers/portfolio/site_items_controller.rb,
app/controllers/portfolio/admin/sites_controller.rb,
app/controllers/portfolio/application_controller.rb,
app/controllers/portfolio/site_projects_controller.rb,
app/controllers/portfolio/admin/site_items_controller.rb,
app/controllers/portfolio/admin/application_controller.rb,
app/controllers/portfolio/admin/social_links_controller.rb,
app/controllers/portfolio/admin/site_projects_controller.rb,
app/controllers/portfolio/admin/site_item_tags_controller.rb,
app/controllers/portfolio/admin/site_menu_links_controller.rb,
app/controllers/portfolio/admin/site_item_images_controller.rb,
app/controllers/portfolio/admin/site_social_links_controller.rb,
app/controllers/portfolio/admin/site_item_categories_controller.rb

Overview

Fix for devise redirecting to the wrong path on auth failing /admin_user/sign_in instead of /portfolio/admin_user/sign_in

Defined Under Namespace

Modules: Admin, ApplicationHelper, Generators, SiteItemsHelper, SitesHelper Classes: AdminUser, ApplicationController, CustomFailure, Engine, Site, SiteItem, SiteItemCategory, SiteItemImage, SiteItemTag, SiteItemsController, SiteMenuLink, SiteProject, SiteProjectsController, SiteSocialLink, SitesController, SocialLink

Constant Summary collapse

VERSION =
"0.0.5"

Class Method Summary collapse

Class Method Details

.setup {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Portfolio)

    the object that the method was called on



30
31
32
# File 'lib/portfolio/engine.rb', line 30

def self.setup(&block)
  yield self
end