Sha256: 03bf75dc8509d64b1188a709a6aeb8ba587ac3cd3714081f1aa33249084cab5a

Contents?: true

Size: 323 Bytes

Versions: 2

Compression:

Stored size: 323 Bytes

Contents

require 'seo_friendly/seo_creator'
module SeoFriendly

  class SeoSearcher

    attr_reader :id, :type

    def initialize(searchable_id, searchable_type)
      @id = searchable_id
      @type = searchable_type
    end

    def search
      SeoParam.where(searchable_type: type, searchable_id: id).first
    end

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
seo_friendly-0.0.2 lib/seo_friendly/seo_searcher.rb
seo_friendly-0.0.1 lib/seo_friendly/seo_searcher.rb