Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: LTe/acts-as-messageable
base: 0fbd92e9d0
...
head fork: LTe/acts-as-messageable
compare: v0.4.7
Checking mergeability… Don't worry, you can still create the pull request.
  • 3 commits
  • 3 files changed
  • 0 commit comments
  • 1 contributor
View
2  VERSION
@@ -1 +1 @@
-0.4.6
+0.4.7
View
4 acts-as-messageable.gemspec
@@ -5,11 +5,11 @@
Gem::Specification.new do |s|
s.name = "acts-as-messageable"
- s.version = "0.4.6"
+ s.version = "0.4.7"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Piotr Nielacny"]
- s.date = "2012-09-27"
+ s.date = "2012-10-02"
s.email = "piotr.nielacny@gmail.com"
s.extra_rdoc_files = [
"README.md"
View
5 lib/acts-as-messageable/model.rb
@@ -95,9 +95,10 @@ def send_message(to, *args)
end
message = self.class.messages_class_name.create message_attributes
+ message.received_messageable = to
+ message.sent_messageable = self
- self.sent_messages_relation << message
- to.received_messages_relation << message
+ message.save
message
end

No commit comments for this range

Something went wrong with that request. Please try again.