Sha256: 5aa7d4f2af493192f4173e30087578e26ce9e53c493f0eb5381f65289ea89ac6

Contents?: true

Size: 328 Bytes

Versions: 4

Compression:

Stored size: 328 Bytes

Contents

module Native
    module Owner

        def self.included base
            base.extend ClassMethods
        end

        module ClassMethods
            def uses_native_apps
                has_many :native_apps, class_name: 'Native::App', as: :owner, dependent: :destroy
            end
        end

    end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
native-2.1.4 lib/native/owner.rb
native-2.1.3 lib/native/owner.rb
native-2.1.2 lib/native/owner.rb
native-2.1.1 lib/native/owner.rb