Sha256: 2a033e8eee773b92096abc2e3af73465c037f0bf3bffd33ecc1e73ec13f46f8a

Contents?: true

Size: 377 Bytes

Versions: 3

Compression:

Stored size: 377 Bytes

Contents

module BaseCrm
  module Noteable

    def notes
      pass_headers(Note).params({
        :noteable_type => self.noteable_type,
        :noteable_id => self.id
      })
    end

    def create_note(message)
      pass_headers(Note).create({
        :content => message,
        :noteable_type => self.noteable_type,
        :noteable_id => self.id
      })
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
basecrm-0.0.3 lib/base_crm/noteable.rb
basecrm-0.0.2 lib/base_crm/noteable.rb
basecrm-0.0.1 lib/base_crm/noteable.rb