Sha256: 15eab8efcbb4934df7eb5bb32f604ee78241608c39c489030dafd2f2f72d4058
Contents?: true
Size: 637 Bytes
Versions: 1
Compression:
Stored size: 637 Bytes
Contents
module Para module ModelFieldParsers def self.registered_parsers @registered_parsers ||= {} end def self.parse!(model, fields_hash) registered_parsers.each do |_, parser_class| parser = parser_class.new(model, fields_hash) parser.parse! if parser.applicable? end end end end require 'para/model_field_parsers/base' require 'para/model_field_parsers/devise' require 'para/model_field_parsers/paperclip' require 'para/model_field_parsers/orderable' require 'para/model_field_parsers/relations' require 'para/model_field_parsers/redactor' require 'para/model_field_parsers/globalize'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
para-0.4.0 | lib/para/model_field_parsers.rb |