Sha256: b481ea9606223f4ed28b1d3d56e2f660316dfb8ef7d3043e126cc880af90c150
Contents?: true
Size: 321 Bytes
Versions: 19
Compression:
Stored size: 321 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.gsub(/^\/$/, '') end end
Version data entries
19 entries across 19 versions & 1 rubygems