Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F5492632
simple_configuration.rb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Sep 29, 3:34 PM
Size
586 B
Mime Type
text/x-c++
Expires
Thu, Oct 1, 3:34 PM (4 h, 31 m)
Engine
blob
Format
Raw Data
Handle
458194
Attached To
rARCHIVING archiving
simple_configuration.rb
View Options
class
SimpleConfiguration
<
ActiveRecord
::
Base
establish_connection
ARCHIVING_CONF
DAYS
=
{
monday
:
:mon
,
tuesday
:
:tue
,
wednesday
:
:wed
,
thursday
:
:thu
,
friday
:
:fri
,
saturday
:
:sat
,
sunday
:
:sun
}
enum
day
:
{
monday
:
0
,
tuesday
:
1
,
wednesday
:
2
,
thursday
:
3
,
friday
:
4
,
saturday
:
5
,
sunday
:
6
}
belongs_to
:host
validates
:host
,
:day
,
:hour
,
:minute
,
presence
:
true
validates
:hour
,
numericality
:
{
greater_than_or_equal
:
0
,
less_then
:
24
}
validates
:minute
,
numericality
:
{
greater_than_or_equal
:
0
,
less_then
:
60
}
end
Event Timeline
Log In to Comment