Sha256: d7043a450fa630537fea3704fa91bc3475c8dc583a0ceb2c803e8abf470569c4

Contents?: true

Size: 308 Bytes

Versions: 8

Compression:

Stored size: 308 Bytes

Contents

module Storytime
  module Constraints
    class BlogHomepageConstraint
      include Storytime::Concerns::CurrentSite
      def matches?(request)
        site = current_storytime_site(request)
        site.present? && site.homepage.present? && site.homepage.is_a?(Storytime::Blog)
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
storytime-2.1.6 lib/storytime/constraints/blog_homepage_constraint.rb
storytime-2.1.5 lib/storytime/constraints/blog_homepage_constraint.rb
storytime-2.1.4 lib/storytime/constraints/blog_homepage_constraint.rb
storytime-2.1.3 lib/storytime/constraints/blog_homepage_constraint.rb
storytime-2.1.2 lib/storytime/constraints/blog_homepage_constraint.rb
storytime-2.1.1 lib/storytime/constraints/blog_homepage_constraint.rb
storytime-2.1.0 lib/storytime/constraints/blog_homepage_constraint.rb
storytime-2.0.0 lib/storytime/constraints/blog_homepage_constraint.rb