@@ -25,7 +25,7 class Wiki < ActiveRecord::Base | |||||
25 |
|
25 | |||
26 | validates_presence_of :start_page |
|
26 | validates_presence_of :start_page | |
27 | validates_format_of :start_page, :with => /\A[^,\.\/\?\;\|\:]*\z/ |
|
27 | validates_format_of :start_page, :with => /\A[^,\.\/\?\;\|\:]*\z/ | |
28 |
validates_length_of : |
|
28 | validates_length_of :start_page, maximum: 255 | |
29 | attr_protected :id |
|
29 | attr_protected :id | |
30 |
|
30 | |||
31 | before_destroy :delete_redirects |
|
31 | before_destroy :delete_redirects |
General Comments 0
You need to be logged in to leave comments.
Login now