rosa-build/app/models/concerns/external_nodable.rb

16 lines
296 B
Ruby

module ExternalNodable
extend ActiveSupport::Concern
EXTERNAL_NODES = %w(owned everything)
included do
validates :external_nodes,
inclusion: { in: EXTERNAL_NODES },
allow_blank: true
attr_accessible :external_nodes
end
end