Sha256: 08c5ed00f29dd45a52c8d3a5823b71ec3c39d9657f74078b6300bd7afea51fc7

Contents?: true

Size: 321 Bytes

Versions: 1

Compression:

Stored size: 321 Bytes

Contents

module Native
    module Owner

        def self.included base
            base.extend ClassMethods
        end

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

    end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
native-2.1.0 lib/native/owner.rb