Sha256: dbe0da37dd7a0401275fc3bd14ea682c1622132470e29ff75f7d6c2ded8a0a68

Contents?: true

Size: 255 Bytes

Versions: 3

Compression:

Stored size: 255 Bytes

Contents

module BaseCrm
  module Noteable

    def notes
      @notes ||= BaseCrm::RelatedObjectScope.new(self, Note, :noteable)
    end

    # Keeping it for legacy purposes
    def create_note(message)
      notes.create(:content => message)
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
basecrm-0.1.2 lib/base_crm/noteable.rb
basecrm-0.1.1 lib/base_crm/noteable.rb
basecrm-0.1.0 lib/base_crm/noteable.rb