lib/rimless/configuration_handling.rb
def local_app_name
        # Check for non-Rails integration
        return unless defined? Rails
        # Check if a application is defined
        return if Rails.application.nil?

        # Pass back the URI compatible application name
        Rails.application.class.parent_name.underscore.dasherize
      end
# Pass back the local application name. When we are loaded together with
# a Rails application we use the application class name. This
# application name is URI/GID compatible. When no local application is
# available, we just pass back +nil+.
#
# @return [String, nil] the Rails application name, or +nil+
Pass back the local application name. When we are loaded together with
a Rails application we use the application class name. This
application name is URI/GID compatible. When no local application is
available, we just pass back +nil+.
Pass back the local application name . When we are loaded together with a Rails application we use the application class name . This application name is URI / GID compatible . When no local application is available we just pass back + nil + .
def local_app_name
        return unless defined? Rails
        return if Rails.application.nil?
        Rails.application.class.parent_name.underscore.dasherize
      end
def local_app_name return unless defined? Rails return if Rails . application . nil? Rails . application . class . parent_name . underscore . dasherize end
Pass back the local application name.
Pass back the local application name .
# Check for non-Rails integration # Check if a application is defined # Pass back the URI compatible application name
the Rails application name, or +nil+
the Rails application name or + nil +
String, nil