Module: Iord::Crud::ClassMethods

Defined in:
lib/iord/crud.rb

Instance Method Summary collapse

Instance Method Details

#crud_response_formatObject

Raises:

  • (ArgumentError)


14
15
16
17
# File 'lib/iord/crud.rb', line 14

def crud_response_format
  raise ArgumentError, "block expected" unless block_given?
  self.crud_response_formats = self.crud_response_formats << Proc.new
end