mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-27 21:10:54 +00:00
Indentation
This commit is contained in:
parent
41421eb800
commit
4f1e1ce911
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 [:rcon, :password, :irc], :maximum => 30, :allow_blank => true
|
||||||
validates_length_of :description, :maximum => 255, :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 :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 :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 :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
|
validates_format_of :pwd, :with => /\A[A-Za-z0-9_\-]*\z/, :allow_nil => true
|
||||||
|
|
||||||
scope :ordered, :order => "name"
|
scope :ordered, :order => "name"
|
||||||
|
|
Loading…
Reference in a new issue