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

Version Path
alchemy_cms-2.3.2 lib/alchemy/mount_point.rb
alchemy_cms-2.2.4 lib/alchemy/mount_point.rb
alchemy_cms-2.3.1 lib/alchemy/mount_point.rb
alchemy_cms-2.2.3.2 lib/alchemy/mount_point.rb
alchemy_cms-2.2.3.1 lib/alchemy/mount_point.rb
alchemy_cms-2.3.0 lib/alchemy/mount_point.rb
alchemy_cms-2.3.rc5 lib/alchemy/mount_point.rb
alchemy_cms-2.2.2 lib/alchemy/mount_point.rb
alchemy_cms-2.2.1 lib/alchemy/mount_point.rb
alchemy_cms-2.2.0 lib/alchemy/mount_point.rb
alchemy_cms-2.2.rc15 lib/alchemy/mount_point.rb
alchemy_cms-2.2.rc14 lib/alchemy/mount_point.rb
alchemy_cms-2.2.rc13 lib/alchemy/mount_point.rb
alchemy_cms-2.2.rc11 lib/alchemy/mount_point.rb
alchemy_cms-2.2.rc8 lib/alchemy/mount_point.rb
alchemy_cms-2.2.rc7 lib/alchemy/mount_point.rb
alchemy_cms-2.2.rc6 lib/alchemy/mount_point.rb
alchemy_cms-2.2.rc3 lib/alchemy/mount_point.rb
alchemy_cms-2.2.rc2 lib/alchemy/mount_point.rb
alchemy_cms-2.2.rc1 lib/alchemy/mount_point.rb