Sha256: df88609f182b67ffcdde034a1222f54c85ed4c1afc0a16ccc44ecfbff06e030f

Contents?: true

Size: 307 Bytes

Versions: 1

Compression:

Stored size: 307 Bytes

Contents

object @note => :note

attributes :author_name, :created_at

node :content_html, &:content_html
node :dom_css, &:dom_css

node :id do |rec|
  "#{rec.dom_id}_#{rec.id}"
end

node :author do |rec|
  if rec.html_class == 'out'
    rec.author_name
  else
    I18n.t :self, scope: [:account, :tickets]
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
translation_cms-0.1.5 app/views/account/notes/create.json.rabl