fixes #2100
This commit is contained in:
@@ -37,7 +37,7 @@ class DmailsController < ApplicationController
|
||||
end
|
||||
|
||||
def create
|
||||
@dmail = Dmail.create_split(params[:dmail])
|
||||
@dmail = Dmail.create_split(params[:dmail].merge(:creator_ip_addr => request.remote_ip))
|
||||
respond_with(@dmail)
|
||||
end
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ class Dmail < ActiveRecord::Base
|
||||
belongs_to :from, :class_name => "User"
|
||||
after_create :update_recipient
|
||||
after_create :send_dmail
|
||||
attr_accessible :title, :body, :is_deleted, :to_id, :to, :to_name
|
||||
attr_accessible :title, :body, :is_deleted, :to_id, :to, :to_name, :creator_ip_addr
|
||||
|
||||
module AddressMethods
|
||||
def to_name
|
||||
|
||||
Reference in New Issue
Block a user