|
|
@ -7,6 +7,7 @@ class FiltersController < ApplicationController |
|
|
|
|
|
|
|
|
|
|
|
before_action :set_filters, only: :index |
|
|
|
before_action :set_filters, only: :index |
|
|
|
before_action :set_filter, only: [:edit, :update, :destroy] |
|
|
|
before_action :set_filter, only: [:edit, :update, :destroy] |
|
|
|
|
|
|
|
before_action :set_pack |
|
|
|
|
|
|
|
|
|
|
|
def index |
|
|
|
def index |
|
|
|
@filters = current_account.custom_filters |
|
|
|
@filters = current_account.custom_filters |
|
|
@ -43,6 +44,10 @@ class FiltersController < ApplicationController |
|
|
|
|
|
|
|
|
|
|
|
private |
|
|
|
private |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def set_pack |
|
|
|
|
|
|
|
use_pack 'settings' |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def set_filters |
|
|
|
def set_filters |
|
|
|
@filters = current_account.custom_filters |
|
|
|
@filters = current_account.custom_filters |
|
|
|
end |
|
|
|
end |
|
|
|