lib/i18n_viz/middleware.rb in i18n_viz-1.0.1 vs lib/i18n_viz/middleware.rb in i18n_viz-1.1.0

- old
+ new

@@ -2,10 +2,11 @@ class Middleware JS = File.read(File.join(File.dirname(__FILE__), '..', '..', 'assets', 'javascripts', 'i18n_viz.js' )) CSS = File.read(File.join(File.dirname(__FILE__), '..', '..', 'assets', 'stylesheets', 'i18n_viz.css' )) attr_accessor :external_tool_url + attr_accessor :css_override def initialize(app, &block) @app = app yield(self) if block_given? end @@ -36,10 +37,13 @@ external_tool_url: '#{external_tool_url}' } #{JS} </script> -<style>#{CSS}</style> +<style> +#{CSS} +#{css_override} +</style> } style_and_script << m.to_s end response end