Padrino::Admin::Generators::Orm
Class: Padrino::Admin::Generators::Orm
- Inherits:
- Object
- Object
- Padrino::Admin::Generators::Orm
Overview
Defines the generic ORM management functions used to manipulate data for admin.
Defined Under Namespace
Classes: Column
Instance Attribute Summary
-
#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 Summary
-
#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
-
#initialize(name, orm, columns = nil, column_fields = nil) ⇒ Orm
constructor A new instance of Orm. -
#multiple_destroy(params = nil) ⇒ Object
-
#save ⇒ Object
-
#update_attributes(params = nil) ⇒ Object
Constructor Details
#initialize(name, orm, columns = nil, column_fields = nil) ⇒ Orm
Returns a new instance of Orm
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
© 2010–2016 Padrino
Licensed under the MIT License.
http://www.rubydoc.info/github/padrino/padrino-framework/Padrino/Admin/Generators/Orm