esc, all, page, title = $1, $2, $3, $5
if esc.nil?
if page =~ /^([^\:]+)\:(.*)$/
- link_project = Project.find_by_name($1) || Project.find_by_identifier($1)
+ link_project = Project.find_by_identifier($1) || Project.find_by_name($1)
page = $2
title ||= $1 if page.blank?
end
attr_protected :status, :enabled_module_names
validates_presence_of :name, :identifier
- validates_uniqueness_of :name, :identifier
+ validates_uniqueness_of :identifier
validates_associated :repository, :wiki
validates_length_of :name, :maximum => 30
validates_length_of :homepage, :maximum => 255
should_validate_presence_of :name
should_validate_presence_of :identifier
- should_validate_uniqueness_of :name
should_validate_uniqueness_of :identifier
context "associations" do