lib/yaks/mapper/class_methods.rb in yaks-0.7.6 vs lib/yaks/mapper/class_methods.rb in yaks-0.7.7

- old
+ new

@@ -1,10 +1,11 @@ # -*- coding: utf-8 -*- module Yaks class Mapper module ClassMethods + extend Util::Deprecated include Forwardable, Util, FP def config(value = Undefined) @@ -25,11 +26,11 @@ :attributes, :link, :profile, :has_one, :has_many, - :control + :form ] CONFIG_METHODS.each do |method_name| define_method method_name do |*args, &block| if args.empty? @@ -38,8 +39,9 @@ config(config.public_send(method_name, *args, &block)) end end end + deprecated_alias :control, :form end end end