W3cubDocs

/Padrino

Class: Padrino::Admin::Generators::Orm

Inherits:
Object
  • Object

Overview

Defines the generic ORM management functions used to manipulate data for admin.

Defined Under Namespace

Classes: Column

Instance Attribute Summary

Instance Method Summary

Constructor Details

#initialize(name, orm, columns = nil, column_fields = nil) ⇒ Orm

Returns a new instance of Orm

Raises:

Instance Attribute Details

#klass ⇒ Object (readonly)

Returns the value of attribute klass

#klass_name ⇒ Object (readonly)

Returns the value of attribute klass_name

#name_param ⇒ Object (readonly)

Returns the value of attribute name_param

#name_plural ⇒ Object (readonly)

Returns the value of attribute name_plural

#name_singular ⇒ Object (readonly)

Returns the value of attribute name_singular

#orm ⇒ Object (readonly)

Returns the value of attribute orm

Instance Method Details

#activerecord? ⇒ Boolean

#all ⇒ Object

#build(params = nil) ⇒ Object

#column_fields ⇒ Object

#columns ⇒ Object

#destroy ⇒ Object

#dm_column(p) ⇒ Object

#field_type(type) ⇒ Object

#find(params = nil) ⇒ Object

#find_by_ids(params = nil) ⇒ Object

#has_error(field) ⇒ Object

#multiple_destroy(params = nil) ⇒ Object

#save ⇒ Object

#update_attributes(params = nil) ⇒ Object