This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# So you want to start developing an already "woking" project. No | |
# bundle, config.gem's not present or messing up dependencies. Fear | |
# not! | |
# Do a "gem list" wherever the project is already working | |
# (production?, some colleage machine?). Make a file with this format: | |
# | |
# chronic (0.2.3) | |
# colored (1.1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Availability < ActiveRecord::Base | |
DEFAULT_RENT = "General" | |
MINIMUM_MINUTES_DURATION = 90 | |
MINIMUN_HOURS_MARGIN = 1 | |
MINIMUN_MINUTES_SEGMENT = 15 | |
belongs_to :rent | |
belongs_to :carpark | |
validates_associated :carpark |
NewerOlder