Module: Property::StoredSchema
- Includes:
- SchemaModule
- Defined in:
- lib/property/stored_schema.rb
Overview
This module lets you use a custom class to store a schema inside the database. The custom class must also include StoredRole.
Class Method Summary collapse
Methods included from SchemaModule
#add_column, #columns, #has_role?, #include_role, #index_groups, #initialize_schema_module, #klass, #roles, #used_roles_in
Class Method Details
.included(base) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/property/stored_schema.rb', line 10 def self.included(base) base.class_eval do attr_writer :class, :superschema def after_initialize initialize_schema_module(:class => @class, :superschema => @superschema) end end end |