Sha256: 9078fc74b06c5c04a20b020938401b27181292c600714783237666d28924a8ee

Contents?: true

Size: 690 Bytes

Versions: 17

Compression:

Stored size: 690 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.
    include StiFixes               # Fixes using RailsOps models with STI.
    include Marshalling            # Fixes marshalling of operation models
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
rails_ops-1.5.8 lib/rails_ops/model_mixins.rb
rails_ops-1.5.7 lib/rails_ops/model_mixins.rb
rails_ops-1.5.6 lib/rails_ops/model_mixins.rb
rails_ops-1.5.5 lib/rails_ops/model_mixins.rb
rails_ops-1.5.4 lib/rails_ops/model_mixins.rb
rails_ops-1.5.0 lib/rails_ops/model_mixins.rb
rails_ops-1.4.8 lib/rails_ops/model_mixins.rb
rails_ops-1.4.7 lib/rails_ops/model_mixins.rb
rails_ops-1.4.6 lib/rails_ops/model_mixins.rb
rails_ops-1.4.5 lib/rails_ops/model_mixins.rb
rails_ops-1.4.4 lib/rails_ops/model_mixins.rb
rails_ops-1.4.3 lib/rails_ops/model_mixins.rb
rails_ops-1.4.2 lib/rails_ops/model_mixins.rb
rails_ops-1.4.1 lib/rails_ops/model_mixins.rb
rails_ops-1.4.0 lib/rails_ops/model_mixins.rb
rails_ops-1.3.0 lib/rails_ops/model_mixins.rb
rails_ops-1.2.3 lib/rails_ops/model_mixins.rb