mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 06:34:46 +02:00
Generate <body> CSS class for every action for better styling
This commit is contained in:
parent
1fd6200eef
commit
30fb22af42
6 changed files with 10 additions and 6 deletions
|
@ -89,4 +89,8 @@ module ApplicationHelper
|
|||
types.delete('ddoc')
|
||||
".#{types.join(',.')}"
|
||||
end
|
||||
end
|
||||
|
||||
def body_css_class
|
||||
[controller_path.split('/').map!(&:dasherize), action_name.dasherize, 'page'].join('-')
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue