Module: Secretary
- Extended by:
- ActiveSupport::Autoload
- Defined in:
- lib/secretary.rb,
lib/secretary.rb,
lib/secretary/config.rb,
lib/secretary/engine.rb,
lib/secretary/errors.rb,
lib/secretary/gem_version.rb,
lib/secretary/has_secretary.rb,
app/models/secretary/version.rb,
lib/secretary/dirty_associations.rb,
lib/secretary/tracks_association.rb,
lib/secretary/versioned_attributes.rb,
lib/secretary/dirty_associations/singular.rb,
lib/generators/secretary/install_generator.rb,
lib/secretary/dirty_associations/collection.rb,
app/models/concerns/secretary/user_activity_association.rb
Defined Under Namespace
Modules: DirtyAssociations, HasSecretary, TracksAssociation, UserActivityAssociation, VersionedAttributes Classes: Config, Engine, InstallGenerator, NoAssociationError, NotVersionedError, Version
Constant Summary collapse
- GEM_VERSION =
"2.0.1"
Class Attribute Summary collapse
Class Method Summary collapse
-
.configure {|config| ... } ⇒ Object
Pass a block to this method to define the configuration If no block is passed, config will be defaults.
- .versioned_models ⇒ Object
Class Attribute Details
.config ⇒ Object
22 23 24 |
# File 'lib/secretary.rb', line 22 def config @config || configure end |
Class Method Details
.configure {|config| ... } ⇒ Object
Pass a block to this method to define the configuration If no block is passed, config will be defaults
15 16 17 18 19 |
# File 'lib/secretary.rb', line 15 def configure config = Config.new yield config if block_given? self.config = config end |
.versioned_models ⇒ Object
26 27 28 |
# File 'lib/secretary.rb', line 26 def versioned_models @versioned_models ||= [] end |