Skip to content

Commit

Permalink
Merge pull request #15872 from karelhala/middlewareMessagingChart
Browse files Browse the repository at this point in the history
When trying to find char layout for middleware messaging return correct file path
  • Loading branch information
martinpovolny authored Aug 30, 2017
2 parents 9641a1b + a4ec470 commit 90bcd5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/middleware_messaging.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def chart_report_name
end

def chart_layout_path
"#{self.class.name.gsub(/::/, '_')}_#{messaging_type.parameterize(:separator => '_')}"
"#{self.class.name.demodulize}_#{messaging_type.parameterize(:separator => '_')}"
end

def self.supported_models
Expand Down

0 comments on commit 90bcd5c

Please sign in to comment.