Skip to content

Commit

Permalink
Changed deprecated %d with {{count}}
Browse files Browse the repository at this point in the history
Signed-off-by: Sean Cribbs <seancribbs@gmail.com>
  • Loading branch information
netzpirat authored and seancribbs committed Apr 10, 2009
1 parent 493ca5c commit 7d1ed14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/text_asset.rb
Expand Up @@ -9,7 +9,7 @@ class TextAsset < ActiveRecord::Base
has_one :dependency, :class_name => 'TextAssetDependency', :dependent => :destroy

validates_presence_of :name, :message => 'required'
validates_length_of :name, :maximum => 100, :message => '%d-character limit'
validates_length_of :name, :maximum => 100, :message => '{{count}}-character limit'
validates_uniqueness_of :name, :scope => :class_name, :message => "name already in use"
# the following regexp uses \A and \Z rather than ^ and $ to enforce no "\n" characters
validates_format_of :name, :with => %r{\A[-_.A-Za-z0-9]*\Z}, :message => 'invalid format'
Expand Down

0 comments on commit 7d1ed14

Please sign in to comment.