forked from fixin.me/fixin.me
To allow proper path prefix for view partials when using config.action_view.prefix_partial_path_with_controller_namespace
12 lines
252 B
Ruby
12 lines
252 B
Ruby
class Default::UnitsController < ApplicationController
|
|
navigation_tab :units
|
|
|
|
before_action except: :index do
|
|
raise AccessForbidden unless current_user.at_least(:admin)
|
|
end
|
|
|
|
def index
|
|
@units = current_user.units.defaults_diff
|
|
end
|
|
end
|