# name: OpenStreetMap Onebox # version: 0.1 # authors: Marcin Rataj # whitelist raw iframes register_asset('javascripts/iframe_whitelist.js', :server_side) class Onebox::Engine::OpenStreetMapOnebox include Onebox::Engine # oneboxing canonical links into iframes matches_regexp(/^https?:\/\/(?:www\.)?(?:openstreetmap\.org\/\?mlat)\/.+$/) def to_html "" end end