Module: DrawRoute

Defined in:
lib/sp-rails-saml/draw_routes.rb

Constant Summary collapse

RoutesNotFound =
Class.new(StandardError)

Instance Method Summary collapse

Instance Method Details

#sp_rails_saml_routes(sso_only: false) ⇒ Object



6
7
8
9
10
11
# File 'lib/sp-rails-saml/draw_routes.rb', line 6

def sp_rails_saml_routes(sso_only: false)
  @sso_only = sso_only
  path = File.expand_path('routes/routes_template.rb', __dir__)
  instance_eval(File.read(path))
  true
end