Skip to content

Commit

Permalink
Merge branch 'hotfix/0.3.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
noctivityinc committed May 24, 2010
2 parents f79c06d + 185f752 commit 24c2c48
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 5 deletions.
4 changes: 4 additions & 0 deletions RELEASE_NOTES.textile
Original file line number Original file line Diff line number Diff line change
@@ -1,5 +1,9 @@
h1. Todopia Release Notes h1. Todopia Release Notes


h3. 0.3.4 (hotfix)
* Fixed bug with inviting new users on todo creation
* upgraded to 2.3.6

h3. 0.3.2 (hotfix) h3. 0.3.2 (hotfix)
* Added removal of due date option * Added removal of due date option
* Fixed bug with sending daily emails * Fixed bug with sending daily emails
Expand Down
2 changes: 1 addition & 1 deletion app/models/invite_todo.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ class InviteTodo < ActiveRecord::Base
belongs_to :todo belongs_to :todo


validates_presence_of :todo, :invite validates_presence_of :todo, :invite
validates_uniqueness_of :todo_id, :scope => :invite_id validates_uniqueness_of :todo_id, :scope => :invite_id, :message => 'has already been used to invite this person'
end end
2 changes: 1 addition & 1 deletion app/models/share.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ class Share < ActiveRecord::Base
belongs_to :todo belongs_to :todo


validates_presence_of :user, :todo validates_presence_of :user, :todo
validates_uniqueness_of :todo_id, :scope => [:user_id] validates_uniqueness_of :todo_id, :scope => [:user_id], :message => 'has already been shared with this user'
end end
2 changes: 1 addition & 1 deletion app/models/todo.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def share_by_email(tag)
else else
self.notice = "An invitation has been sent to #{email} to share this todo." self.notice = "An invitation has been sent to #{email} to share this todo."
invite = self.user.invites.find_or_create_by_email(email) invite = self.user.invites.find_or_create_by_email(email)
invite.invite_todos.create(:todo => self) invite.invite_todos.build(:todo => self)
Postoffice.deliver_invite_and_share(invite, self) Postoffice.deliver_invite_and_share(invite, self)
return true return true
end end
Expand Down
2 changes: 1 addition & 1 deletion git-flow-version
Original file line number Original file line Diff line number Diff line change
@@ -1 +1 @@
GITFLOW_VERSION=0.3.3 GITFLOW_VERSION=0.3.4
1 change: 0 additions & 1 deletion public/javascripts/controllers/public/todos.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ function setup_add_form() {
error: function(responseText, statusText, xhr, form){ error: function(responseText, statusText, xhr, form){
setup_autocomplete(); setup_autocomplete();
$('#todo_label').addClass('fieldWithErrors'); $('#todo_label').addClass('fieldWithErrors');
$.flash.show();
}, },
complete: function(request, status){ ajax_complete(request, status)} complete: function(request, status){ ajax_complete(request, status)}
}); });
Expand Down

0 comments on commit 24c2c48

Please sign in to comment.