Permalink
Browse files

use native Rails i18n api call for error message lookup to avoid load…

… order errors when overriding this model
  • Loading branch information...
bborn committed Dec 18, 2009
1 parent 56109db commit 1b7b5585016bee145cd697f40c79dcdd761488fd
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/rsvp.rb
View
@@ -2,7 +2,7 @@ class Rsvp < ActiveRecord::Base
acts_as_activity :user
validates_numericality_of :attendees_count, :only_integer=>true, :greater_than=>0
validates_presence_of :event, :user
validates_uniqueness_of :user_id, :scope => :event_id, :message => :you_have_already_rsvped_for_this_event.l
validates_uniqueness_of :user_id, :scope => :event_id, :message => I18n.t(:you_have_already_rsvped_for_this_event)
validate :event_in_future
validate :event_allows_rsvp

0 comments on commit 1b7b558

Please sign in to comment.