Skip to content

Commit 7bbb9cf

Browse files
committed
Fix bug
1 parent fc6aa75 commit 7bbb9cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/static_file.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class StaticFile < ActiveRecord::Base
44

55
attr_accessible :file
66

7-
validate :file, :presence
7+
validates :file, presence: true
88

99
# For ActiveAdmin interface
1010
def name

0 commit comments

Comments
 (0)