Skip to content
This repository was archived by the owner on Apr 17, 2018. It is now read-only.
This repository was archived by the owner on Apr 17, 2018. It is now read-only.

dm-is-remixable does a non-standard method to lookup models. #4

@postmodern

Description

@postmodern

I noticed that dm-is-remixable searches for models at the top-level first. This differs from how dm-core resolves models, which begins searching in the current namespace upward.

# lib/dm-is-remixable/is/remixable.rb:60
remixable_module = case remixable
  when Symbol then Object.full_const_get(ActiveSupport::Inflector.    classify(remixable))
  when String then Object.full_const_get(remixable)
  when Module then remixable
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions