- 'test/unit/issue_subtasking_test.rb'
- 'test/unit/lib/redmine/export/pdf_test.rb'
-# Cop supports --auto-correct.
-Layout/SpaceInsidePercentLiteralDelimiters:
- Exclude:
- - 'app/models/project.rb'
-
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: space, no_space
# downcase letters, digits, dashes but not digits only
validates_format_of :identifier, :with => /\A(?!\d+$)[a-z0-9\-_]*\z/, :if => Proc.new { |p| p.identifier_changed? }
# reserved words
- validates_exclusion_of :identifier, :in => %w( new )
+ validates_exclusion_of :identifier, :in => %w(new)
validate :validate_parent
after_save :update_inherited_members, :if => Proc.new {|project| project.saved_change_to_inherit_members?}