Revision c1c9649b
Added by Daniel Lobato Garcia almost 9 years ago
app/controllers/filters_controller.rb | ||
---|---|---|
end
|
||
|
||
def resource_base
|
||
@resource_base ||= @role.present? ?
|
||
@role.filters.authorized(current_permission) :
|
||
Filter.scoped.authorized(current_permission)
|
||
@resource_base ||= if @role.present?
|
||
@role.filters.authorized(current_permission)
|
||
else
|
||
Filter.scoped.authorized(current_permission)
|
||
end
|
||
end
|
||
|
||
def role_id
|
Also available in: Unified diff
Refs #3809 - Enable cop Style/MultilineTernaryOperator