Skip to content

Instantly share code, notes, and snippets.

View resool's full-sized avatar

Szymon resool

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