Class: Wco::Report

Inherits:
Object
  • Object
show all
Includes:
Mongoid::Document, 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



27
28
29
# File 'app/models/wco/report.rb', line 27

def body_json
  body.gsub(/\r/, '').gsub(/\n\n+/, '<br /><br />').to_json
end

#nameObject



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

def name ; title ; end