Sha256: 82416ed1568502e2cbbb725624da289e978f7094f401e6d765ce090db08278e2
Contents?: true
Size: 550 Bytes
Versions: 6
Compression:
Stored size: 550 Bytes
Contents
module Para module Component module Exportable extend ActiveSupport::Concern included do configurable_on :export end def exportable? @exportable ||= exports.length > 0 end # TODO : Move :configuration column store to JSON instead of HStore # which handles more data types and will help us avoid eval here def exports @exports ||= if export.present? eval(export).map(&:with_indifferent_access) else [] end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems