Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F2564839
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
Wed, Jun 10, 1:10 PM
Size
586 B
Mime Type
text/x-c++
Expires
Fri, Jun 12, 1:10 PM (1 d, 20 h)
Engine
blob
Format
Raw Data
Handle
396306
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