module Hangar
Constants
- BadEnvironmentError
- VERSION
Public Class Methods
do_not_delete()
click to toggle source
# File lib/hangar.rb, line 14 def self.do_not_delete Array.wrap(@@do_not_delete) end
route_namespace()
click to toggle source
# File lib/hangar.rb, line 18 def self.route_namespace if(@@route_namespace.present?) { module: 'hangar', path: @@route_namespace.to_s.pluralize, as: @@route_namespace.to_s.singularize } else { module: 'hangar' } end end
validate_environment()
click to toggle source
# File lib/hangar.rb, line 30 def validate_environment Rails.env.test? or raise BadEnvironmentError, "Hangar should not be used in the #{Rails.env} environment" end
Private Instance Methods
validate_environment()
click to toggle source
# File lib/hangar.rb, line 30 def validate_environment Rails.env.test? or raise BadEnvironmentError, "Hangar should not be used in the #{Rails.env} environment" end