module ActiveFedora::Schema::ClassMethods
def apply_schema(schema, strategy = ActiveFedora::SchemaIndexingStrategy.new)
- Example: Apply a schema and index everything as symbol. -
Parameters:
-
strategy
(#apply
) -- The strategy to use for applying the schema. -
schema
(ActiveTriples::Schema
) -- The schema to apply.
Other tags:
- Note: - The default application strategy adds no indexing hints. You may
def apply_schema(schema, strategy = ActiveFedora::SchemaIndexingStrategy.new) schema.properties.each do |property| strategy.apply(self, property) end end