This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule SchemaChecker do | |
def find_field_discrepancies do | |
schema_modules() | |
|> Enum.map(fn mod -> | |
{mod.__schema__(:source), check_module(mod)} | |
end) | |
end | |
defp schema_modules do | |
{:ok, modules} = :application.get_key(:core, :modules) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Popover Directive. Wraps the AngularStrap popover and | |
* 1) Allows the popover to stay open when hovering / focusing the contents. | |
* If the popover was only triggered by 'hover' or 'focus', it closes as soon | |
* as the mouse leaves or focus is lost on the triggering element. | |
* | |
* 2) Lazy initializes the popover until it's needed. This reduces the | |
* amount of scope. | |
* | |
* 3) When the popover closes, cleans up the AngularStrap popover memory leak |