Sha256: 899132d889007aab741ca0c3414d0c659733ac19fd62dab37fcfdcbc26abe201

Contents?: true

Size: 206 Bytes

Versions: 6

Compression:

Stored size: 206 Bytes

Contents

module SiteFramework
  module DomainAware
    extend ActiveSupport::Concern

    included do
      belongs_to :domain
      default_scope -> { where(:domain => Rails.application.domain) }
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
site_framework-4.1.0 lib/site_framework/active_record/concerns.rb
site_framework-4.0.1 lib/site_framework/active_record/concerns.rb
site_framework-4.0.0 lib/site_framework/active_record/concerns.rb
site_framework-3.2.0 lib/site_framework/active_record/concerns.rb
site_framework-3.1.0 lib/site_framework/active_record/concerns.rb
site_framework-2.0.0 lib/site_framework/active_record/concerns.rb