Make writable_attributes public

pull/3125/head
Alexander Bach 10 years ago committed by Jens Ulferts
parent e1d4f64616
commit 897787604c
  1. 8
      lib/api/contracts/model_contract.rb

@ -48,6 +48,10 @@ module API
end
end
def writable_attributes
collect_ancestor_attributes(:writable_attributes)
end
validate :readonly_attributes_unchanged
validate :run_attribute_validations
@ -63,10 +67,6 @@ module API
attribute_validations.each { |validation| instance_exec(&validation) }
end
def writable_attributes
collect_ancestor_attributes(:writable_attributes)
end
def attribute_validations
collect_ancestor_attributes(:attribute_validations)
end

Loading…
Cancel
Save