JordanHatch/maslow-redux

View on GitHub
app/controllers/settings/base_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class Settings::BaseController < ApplicationController
  layout 'settings/layouts/settings'
  before_action :authorize_settings_access

  expose :tag_types, ->{ TagType.all }

private
  def authorize_settings_access
    authorize! :manage, :settings
  end
end