Sha256: aa41c1062d7b18fcb9c1cdff16a2b9c9bf997235838605065bc4988211d46a49

Contents?: true

Size: 540 Bytes

Versions: 52

Compression:

Stored size: 540 Bytes

Contents

# A collection of mixins that are useful when using models in operations.
module RailsOps::ModelMixins
  extend ActiveSupport::Concern

  included do
    include ArExtension            # Provides correct behaviour of model_name when extending AR objects.
    include ParentOp               # Provides parent_op accessor.
    include VirtualAttributes      # Provides virtual attributes functionality.
    include VirtualHasOne          # Provides virtual_has_one.
    include VirtualModelName       # Provides virtual_model_name.
  end
end

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
rails_ops-1.0.17.1 lib/rails_ops/model_mixins.rb
rails_ops-1.1.23 lib/rails_ops/model_mixins.rb
rails_ops-1.1.22 lib/rails_ops/model_mixins.rb
rails_ops-1.1.21 lib/rails_ops/model_mixins.rb
rails_ops-1.1.20 lib/rails_ops/model_mixins.rb
rails_ops-1.1.19 lib/rails_ops/model_mixins.rb
rails_ops-1.1.18 lib/rails_ops/model_mixins.rb
rails_ops-1.1.17 lib/rails_ops/model_mixins.rb
rails_ops-1.1.16 lib/rails_ops/model_mixins.rb
rails_ops-1.1.15 lib/rails_ops/model_mixins.rb
rails_ops-1.1.14 lib/rails_ops/model_mixins.rb
rails_ops-1.1.13 lib/rails_ops/model_mixins.rb
rails_ops-1.1.12 lib/rails_ops/model_mixins.rb
rails_ops-1.1.11 lib/rails_ops/model_mixins.rb
rails_ops-1.1.10 lib/rails_ops/model_mixins.rb
rails_ops-1.1.9 lib/rails_ops/model_mixins.rb
rails_ops-1.1.8 lib/rails_ops/model_mixins.rb
rails_ops-1.1.7 lib/rails_ops/model_mixins.rb
rails_ops-1.1.6 lib/rails_ops/model_mixins.rb
rails_ops-1.1.5 lib/rails_ops/model_mixins.rb