# File lib/model/base.rb, line 4 def self.included(model) model.send(:extend, ClassMethods) model.send(:include, InstanceMethods) ## # @config {String} extjs_parent_trail_template This a template used to render mapped field-names. # Default is Proc.new{ |field_name| "_#{field_name}" } # You could also use the Rails standard # Proc.new{ |field_name| "[#{field_name}]" } # model.cattr_accessor :extjs_parent_trail_template model.extjs_parent_trail_template = Proc.new{ |field_name| "_#{field_name}" } if model.extjs_parent_trail_template.nil? end