Sha256: a7411a7f23bcde5f27bfec9ff7e7aebeae17ec9450930ec50eec4a68ee9ffb9b

Contents?: true

Size: 368 Bytes

Versions: 1

Compression:

Stored size: 368 Bytes

Contents

module Helena
  module Concerns
    module  ApplicationModel
      extend ActiveSupport::Concern

      include Mongoid::Document
      include Mongoid::Timestamps

      included do
        before_destroy :removable?

        # Removable is given by default. Override for custom behaviour
        def removable?
          true
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
helena-0.3.3 app/models/helena/concerns/application_model.rb