Module: Kalimba
- Defined in:
- lib/kalimba/reflection.rb,
lib/kalimba.rb,
lib/kalimba/railtie.rb,
lib/kalimba/version.rb,
lib/kalimba/resource.rb,
lib/kalimba/callbacks.rb,
lib/kalimba/exceptions.rb,
lib/kalimba/persistence.rb,
lib/kalimba/validations.rb,
lib/kalimba/attribute_assignment.rb,
lib/kalimba/localized_attributes.rb
Overview
Enables “association-like” behaviour that many Rails-dependent gems rely upon.
The content is mostly copied from ActiveRecord::Reflection
Defined Under Namespace
Modules: AttributeAssignment, Callbacks, LocalizedAttributes, Persistence, Reflection, Validations Classes: AttributeAssignmentError, KalimbaError, MultiparameterAssignmentErrors, Railtie, RecordInvalid, Resource, UnknownAttributeError
Constant Summary collapse
- VERSION =
"0.0.2"
Class Method Summary collapse
- .repository ⇒ Object
-
.set_repository_options(options = {}) ⇒ void
Set repository options.
Class Method Details
.repository ⇒ Object
10 11 12 |
# File 'lib/kalimba.rb', line 10 def repository @repository ||= Persistence.repository(@repository_options || {}) end |
.set_repository_options(options = {}) ⇒ void
This method returns an undefined value.
Set repository options
18 19 20 |
# File 'lib/kalimba.rb', line 18 def ( = {}) @repository_options = end |