Sha256: 103495a374e2cace792af6f7894e64979d7f943b2ec05671a698735b1cff1b2a

Contents?: true

Size: 282 Bytes

Versions: 19

Compression:

Stored size: 282 Bytes

Contents

module PublishMyData
  module Concerns
    module Models
      module Resource
        extend ActiveSupport::Concern

        # Is this resource in the host domain?
        def in_domain?(domain)
          uri.starts_with?("http://" + domain)
        end
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
publish_my_data-0.0.29 lib/publish_my_data/concerns/models/resource.rb
publish_my_data-0.0.28 lib/publish_my_data/concerns/models/resource.rb
publish_my_data-0.0.27 lib/publish_my_data/concerns/models/resource.rb
publish_my_data-0.0.26 lib/publish_my_data/concerns/models/resource.rb
publish_my_data-0.0.25 lib/publish_my_data/concerns/models/resource.rb
publish_my_data-0.0.24 lib/publish_my_data/concerns/models/resource.rb
publish_my_data-0.0.23 lib/publish_my_data/concerns/models/resource.rb
publish_my_data-0.0.22 lib/publish_my_data/concerns/models/resource.rb
publish_my_data-0.0.21 lib/publish_my_data/concerns/models/resource.rb
publish_my_data-0.0.20 lib/publish_my_data/concerns/models/resource.rb
publish_my_data-0.0.19 lib/publish_my_data/concerns/models/resource.rb
publish_my_data-0.0.18 lib/publish_my_data/concerns/models/resource.rb
publish_my_data-0.0.17 lib/publish_my_data/concerns/models/resource.rb
publish_my_data-0.0.16 lib/publish_my_data/concerns/models/resource.rb
publish_my_data-0.0.15 lib/publish_my_data/concerns/models/resource.rb
publish_my_data-0.0.14 lib/publish_my_data/concerns/models/resource.rb
publish_my_data-0.0.13 lib/publish_my_data/concerns/models/resource.rb
publish_my_data-0.0.12 lib/publish_my_data/concerns/models/resource.rb
publish_my_data-0.0.11 lib/publish_my_data/concerns/models/resource.rb