Sha256: c0dd368429302c4400a28b2f7ae942255999fe0bca141bcf055d0859e2a086b8
Contents?: true
Size: 360 Bytes
Versions: 4
Compression:
Stored size: 360 Bytes
Contents
require "casein" require "rails" module Casein class Engine < Rails::Engine rake_tasks do load "railties/tasks.rake" end end class RouteConstraint def matches?(request) return false if request.fullpath.include?("/casein") return false if request.fullpath.include?("/admin") true end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
casein-3.1.11 | lib/casein/engine.rb |
casein-3.1.10 | lib/casein/engine.rb |
casein-3.1.9 | lib/casein/engine.rb |
casein-3.1.8 | lib/casein/engine.rb |