Skip to content

Commit

Permalink
Recover current module name in css classes
Browse files Browse the repository at this point in the history
The class with the module name is used by some engines to select
elements of the DOM
  • Loading branch information
entantoencuanto committed Oct 5, 2021
1 parent 743a416 commit dd0500e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def body_css_classes
if current_site&.configuration&.engine_overrides&.any?
classes.push(Rails.configuration.gobierto_engines_themes[current_site.configuration.engine_overrides.first])
end
classes.push current_module
classes.push controller_name
classes.push action_name
classes.push "#{controller_name}_#{action_name}"
Expand Down

0 comments on commit dd0500e

Please sign in to comment.