diff options
Diffstat (limited to 'app/helpers/admin/admin_helper.rb')
-rw-r--r-- | app/helpers/admin/admin_helper.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/helpers/admin/admin_helper.rb b/app/helpers/admin/admin_helper.rb new file mode 100644 index 0000000..97781a0 --- /dev/null +++ b/app/helpers/admin/admin_helper.rb | |||
@@ -0,0 +1,11 @@ | |||
1 | module Admin::AdminHelper | ||
2 | |||
3 | def major_sidebar_attrs(section) | ||
4 | if section == @section | ||
5 | { class: "major active" } | ||
6 | else | ||
7 | { class: "major inactive" } | ||
8 | end | ||
9 | end | ||
10 | |||
11 | end | ||