Class: Gotenberg::Assets
- Inherits:
-
Object
- Object
- Gotenberg::Assets
- Defined in:
- lib/gotenberg.rb
Overview
Your code goes hereā¦
Class Method Summary collapse
Class Method Details
.include_css(file) ⇒ Object
17 18 19 20 21 |
# File 'lib/gotenberg.rb', line 17 def self.include_css(file) raise "Not in Rails project" unless !Rails.nil? abs_path = Rails.root.join('public', 'stylesheets',file) return "<style type='text/css'>#{File.read(abs_path)}</style>".html_safe end |