Module: ActiveFedora::Schema::ClassMethods
- Defined in:
 - lib/active_fedora/schema.rb
 
Instance Method Summary collapse
- 
  
    
      #apply_schema(schema, strategy = ActiveFedora::SchemaIndexingStrategy.new)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Applies a schema to an ActiveFedora::Base.
 
Instance Method Details
#apply_schema(schema, strategy = ActiveFedora::SchemaIndexingStrategy.new) ⇒ Object
    Note:
    
  
The default application strategy adds no indexing hints. You may want to implement a different strategy if you want to set values on the property reflection.
Applies a schema to an ActiveFedora::Base.
      19 20 21 22 23  | 
    
      # File 'lib/active_fedora/schema.rb', line 19 def apply_schema(schema, strategy = ActiveFedora::SchemaIndexingStrategy.new) schema.properties.each do |property| strategy.apply(self, property) end end  |