Skip to content

Instantly share code, notes, and snippets.

@drh-stanford
Last active August 27, 2015 17:46
Show Gist options
  • Save drh-stanford/1619955c61f016836510 to your computer and use it in GitHub Desktop.
Save drh-stanford/1619955c61f016836510 to your computer and use it in GitHub Desktop.
module BasicGeoMetadata
extend ActiveSupport::Concern
included do
property :georss_box, predicate: ::RDF::URI.new("http://www.georss.org/georss/box"), multiple: false do |index|
index.as :stored_searchable
end
validates_presence_of :georss_box, message: 'Your work must have a bbox.'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment