lib/kadmin/form.rb in kadmin-0.2.7 vs lib/kadmin/form.rb in kadmin-0.2.8

- old
+ new

@@ -1,4 +1,13 @@ +# TODO: Figure out a way to not have to require ActiveModel/ActiveRecord preemptively +# perhaps by making Kadmin::Form optionally requireable? +require 'active_model/naming' +require 'active_model/callbacks' +require 'active_model/translation' +require 'active_model/validator' +require 'active_model/validations' +require 'active_record/attribute_assignment' + module Kadmin # Parsing is done by using attribute setters. If you have an attribute called # name, then add a reader/writer for it, name and name=, and perform the # parsing in name=. If there is no parsing to be done, you can simply delegate # the method to the underlying model.