Sha256: 98be150939539f41df21740f120dfc8074017b2b2fb85c1c59613577d48c74cf

Contents?: true

Size: 300 Bytes

Versions: 45

Compression:

Stored size: 300 Bytes

Contents

module MinimumViableProduct
  module ApplicationHelper
    def body_id
      "#{controller_name}-#{action_name}-page"
    end

    def body_classes
      klass = []
      klass << "#{controller_name}-pages"
      klass << page.classes if page.classes.present?
      klass.join(' ')
    end
  end
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
minimum_viable_product-0.5.7 app/helpers/minimum_viable_product/application_helper.rb
minimum_viable_product-0.5.6 app/helpers/minimum_viable_product/application_helper.rb
minimum_viable_product-0.5.5 app/helpers/minimum_viable_product/application_helper.rb
minimum_viable_product-0.5.4 app/helpers/minimum_viable_product/application_helper.rb
minimum_viable_product-0.5.3 app/helpers/minimum_viable_product/application_helper.rb
minimum_viable_product-0.5.2 app/helpers/minimum_viable_product/application_helper.rb
minimum_viable_product-0.5.1 app/helpers/minimum_viable_product/application_helper.rb
minimum_viable_product-0.5.0 app/helpers/minimum_viable_product/application_helper.rb
minimum_viable_product-0.4.4 app/helpers/minimum_viable_product/application_helper.rb
minimum_viable_product-0.4.3 app/helpers/minimum_viable_product/application_helper.rb
minimum_viable_product-0.4.2 app/helpers/minimum_viable_product/application_helper.rb
minimum_viable_product-0.4.1 app/helpers/minimum_viable_product/application_helper.rb
minimum_viable_product-0.4.0 app/helpers/minimum_viable_product/application_helper.rb
minimum_viable_product-0.3.4 app/helpers/minimum_viable_product/application_helper.rb
minimum_viable_product-0.3.3 app/helpers/minimum_viable_product/application_helper.rb
minimum_viable_product-0.3.2 app/helpers/minimum_viable_product/application_helper.rb
minimum_viable_product-0.3.1 app/helpers/minimum_viable_product/application_helper.rb
minimum_viable_product-0.3.0 app/helpers/minimum_viable_product/application_helper.rb
minimum_viable_product-0.2.7 app/helpers/minimum_viable_product/application_helper.rb
minimum_viable_product-0.2.6 app/helpers/minimum_viable_product/application_helper.rb