Class: Wco::Report

Inherits:
Object
  • Object
show all
Includes:
Mongoid::Document, Mongoid::Paranoia, Mongoid::Timestamps, Utils
Defined in:
app/models/wco/report.rb

Overview

@report.body.split("\n\n").map { |ttt| "

#ttt

" }.join

Constant Summary collapse

PAGE_PARAM_NAME =
'reports_page'

Instance Method Summary collapse

Methods included from Utils

#export, included

Instance Method Details

#body_jsonObject



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

#nameObject



17
# File 'app/models/wco/report.rb', line 17

def name ; title ; end