Fix some to-be-deprecated stuff
This commit is contained in:
parent
4b73f1a1ae
commit
1da034e2be
5 changed files with 9 additions and 8 deletions
|
@ -9,7 +9,7 @@ class WikiFile < ActiveRecord::Base
|
|||
validates_length_of :description, :maximum=>255
|
||||
|
||||
def self.find_by_file_name(file_name)
|
||||
find(:first, :conditions => ['file_name = ?', file_name])
|
||||
first(:conditions => ['file_name = ?', file_name])
|
||||
end
|
||||
|
||||
SANE_FILE_NAME = /^[a-zA-Z0-9\-_\. ]*$/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue