Sha256: f2f6220329b10ee0087c063ac96a8534bdd167090902ddb8f028aa73e2ca097b
Contents?: true
Size: 340 Bytes
Versions: 20
Compression:
Stored size: 340 Bytes
Contents
module Alchemy # Returns alchemys mount point in current rails app. def self.mount_point alchemy_routes = Rails.application.routes.named_routes[:alchemy] raise "Alchemy not mounted! Please mount Alchemy::Engine in your config/routes.rb file." if alchemy_routes.nil? alchemy_routes.path.spec.to_s.gsub(/^\/$/, '') end end
Version data entries
20 entries across 20 versions & 1 rubygems