mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-11-15 01:11:23 +00:00
Indentation
This commit is contained in:
parent
df1eae0631
commit
b4273b5149
1 changed files with 2 additions and 2 deletions
|
@ -47,8 +47,8 @@ class Server < ActiveRecord::Base
|
|||
validates_length_of [:rcon, :password, :irc], :maximum => 30, :allow_blank => true
|
||||
validates_length_of :description, :maximum => 255, :allow_blank => true
|
||||
validates_format_of :ip, :with => /\A[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\z/
|
||||
validates_format_of :port, :with => /\A[0-9]{1,5}\z/
|
||||
validates_format_of :reservation, :with => /\A[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}:[0-9]{1,5}\z/, :allow_nil => true
|
||||
validates_format_of :port, :with => /\A[0-9]{1,5}\z/
|
||||
validates_format_of :reservation, :with => /\A[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}:[0-9]{1,5}\z/, :allow_nil => true
|
||||
validates_format_of :pwd, :with => /\A[A-Za-z0-9_\-]*\z/, :allow_nil => true
|
||||
|
||||
scope :ordered, :order => "name"
|
||||
|
|
Loading…
Reference in a new issue