Skip to content

Instantly share code, notes, and snippets.

Avatar

Szymon resool

  • packhelp
View GitHub Profile
@resool
resool / routes.rb
Created Jun 26, 2018
devise authentication for Blazer
View routes.rb
Rails.application.routes.draw do
devise_for :users
authenticate :user, lambda { |u| u.admin? } do
mount Blazer::Engine, at: 'blazer'
end
end
View app-helpers-category_helper.rb
# frozen_string_literal: true
module CategoryHelper
def helper_method(something)
do_something!(something)
end
private