blob: dd10d3659f1331e75ce05f7a4c72c37f19f7c588 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
module ConnectionLinkRestrictions
extend ActiveSupport::Concern
included do
include ObjectidRestrictions
with_options if: :hub_restricted? do |cl|
# HUB-34
cl.validates :link_distance, numericality: { less_than_or_equal_to: 10000.to_f }
end
end
end
|