Class: Wco::Report
- Inherits:
-
Object
- Object
- Wco::Report
- Includes:
- Mongoid::Document, Mongoid::Paranoia, Mongoid::Timestamps, Utils
- Defined in:
- app/models/wco/report.rb
Overview
@report.body.split("\n\n").map { |ttt| "
#ttt
" }.joinConstant Summary collapse
- PAGE_PARAM_NAME =
'reports_page'
Instance Method Summary collapse
Methods included from Utils
Instance Method Details
#body_json ⇒ Object
28 29 30 |
# File 'app/models/wco/report.rb', line 28 def body_json body.gsub(/\r/, '').gsub(/\n\n+/, '<br /><br />').to_json end |
#name ⇒ Object
17 |
# File 'app/models/wco/report.rb', line 17 def name ; title ; end |