lib/daylight/reflection_ext.rb
##
# Determines and tests for the name with namespace and version.
#
# Falls back to the name of the association which was the original behavior
# of `AssociationReflection`.
#
# See
# ActiveResource::Reflection::AssociationReflection
Determines and tests for the name with namespace and version.
Falls back to the name of the association which was the original behavior
of `AssociationReflection`.


Determines and tests for the name with namespace and version . Falls back to the name of the association which was the original behavior of ` AssociationReflection ` .
def expanded_name
      @expanded_name = begin
        candidate_name = [Daylight::API.namespace, Daylight::API.version, name.to_s.classify].join("::")
        candidate_name.classify.constantize 
        candidate_name.underscore
      rescue
        name.to_s 
      end
    end
def expanded_name @expanded_name = begin candidate_name = [ Daylight :: API . namespace , Daylight :: API . version , name . to_s . classify ] . join ( "::" ) candidate_name . classify . constantize candidate_name . underscore rescue name . to_s end end
Determines and tests for the name with namespace and version.
Determines and tests for the name with namespace and version .
# test for the name, raise if non-existant # fallback to using the original functionality