enju_message 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  class Message < ActiveRecord::Base
3
- attr_accessible :subject, :body, :recipient
3
+ attr_accessible :subject, :body, :sender, :recipient
4
4
  scope :unread, where(:state => 'unread')
5
5
  belongs_to :message_request
6
6
  belongs_to :sender, :class_name => 'User'
@@ -1,7 +1,7 @@
1
1
  require 'erubis'
2
2
  class MessageRequest < ActiveRecord::Base
3
3
  attr_accessible :body
4
- attr_accessible :sender, :receiver, :message_template, :as => :admin
4
+ attr_accessible :sender, :receiver, :message_template, :sent_at, :as => :admin
5
5
  scope :not_sent, where('sent_at IS NULL AND state = ?', 'pending')
6
6
  scope :sent, where(:state => 'sent')
7
7
  scope :started, where(:state => 'started')
@@ -1,3 +1,3 @@
1
1
  module EnjuMessage
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_message
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: