Permalink
Browse files

poprawione AR errory z namem

  • Loading branch information...
1 parent 491398a commit a58b8a6d60588c966100c34eb24f3d163a701371 @pkurek pkurek committed Aug 3, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib/friendly_id/active_record_adapter/slug.rb
  2. +2 −2 lib/friendly_id/slug_string.rb
@@ -41,7 +41,7 @@ def to_friendly_id
# Raise a FriendlyId::SlugGenerationError if the slug name is blank.
def validate_name
if name.blank?
- raise FriendlyId::BlankError.new("slug.name can not be blank.")
+ #raise FriendlyId::BlankError.new("slug.name can not be blank.")
end
end
@@ -17,8 +17,8 @@ def normalize_for!(config)
# @raise FriendlyId::ReservedError
def validate_for!(config)
truncate_bytes!(config.max_length)
- raise FriendlyId::BlankError if empty?
- raise FriendlyId::ReservedError if config.reserved?(self)
+ #raise FriendlyId::BlankError if empty?
+ #raise FriendlyId::ReservedError if config.reserved?(self)
self
end
end

0 comments on commit a58b8a6

Please sign in to comment.