Sha256: 95bdf74d83da2ea1486d66f98d07f94239881568d31d981e8bea5fabfc114621

Contents?: true

Size: 207 Bytes

Versions: 5

Compression:

Stored size: 207 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

5 entries across 5 versions & 1 rubygems

Version Path
site_framework-1.0.2 lib/site_framework/active_record/concerns.rb
site_framework-1.0.1 lib/site_framework/active_record/concerns.rb
site_framework-0.3.0 lib/site_framework/active_record/concerns.rb
site_framework-0.2.0 lib/site_framework/active_record/concerns.rb
site_framework-0.1.1 lib/site_framework/active_record/concerns.rb