Module: Queryko::AfterAttributes::ClassMethods

Defined in:
lib/queryko/after_attributes.rb

Instance Method Summary collapse

Instance Method Details

#add_after_attributes(*args) ⇒ Object



8
9
10
11
12
13
14
15
16
# File 'lib/queryko/after_attributes.rb', line 8

def add_after_attributes(*args)
  suggestion = []
  args.each do |arg|
    feature arg.to_sym, :after, as: "after_#{arg}"
    suggestion << "feature :#{arg}, :after, as: 'after_#{arg}'"

  end
  warn "[DEPRECATION] `add_after_attributes` is deprecated. Please use `feature` instead.\nExample:\n#{suggestion.join("\n")}"
end