module Para::Component::Importable

Public Instance Methods

importable?() click to toggle source
# File lib/para/component/importable.rb, line 10
def importable?
  @importable ||= importers.length > 0
end
importers() click to toggle source

TODO : Move :configuration column store to JSON instead of HStore which handles more data types and will help us avoid eval here

# File lib/para/component/importable.rb, line 16
def importers
  @importers ||= if (importers = configuration['importers'].presence)
    eval(importers).map(&:constantize)
  else
    []
  end
end