Sha256: d1f0860835529aa2fdc0450b4074d50c623ae4784f702a96adcdfb1f73385ab1

Contents?: true

Size: 293 Bytes

Versions: 34

Compression:

Stored size: 293 Bytes

Contents

module MinimumViableProduct
  module BodyHelper
    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

34 entries across 34 versions & 2 rubygems

Version Path
mvpkit-1.1.2 app/helpers/minimum_viable_product/body_helper.rb
mvpkit-1.1.1 app/helpers/minimum_viable_product/body_helper.rb
mvpkit-1.1.0 app/helpers/minimum_viable_product/body_helper.rb
mvpkit-1.0.4 app/helpers/minimum_viable_product/body_helper.rb
mvpkit-1.0.3 app/helpers/minimum_viable_product/body_helper.rb
mvpkit-1.0.2 app/helpers/minimum_viable_product/body_helper.rb
mvpkit-1.0.1 app/helpers/minimum_viable_product/body_helper.rb
mvpkit-1.0.0 app/helpers/minimum_viable_product/body_helper.rb
mvpkit-0.8.1 app/helpers/minimum_viable_product/body_helper.rb
mvpkit-0.8.0 app/helpers/minimum_viable_product/body_helper.rb
minimum_viable_product-0.7.15 app/helpers/minimum_viable_product/body_helper.rb
minimum_viable_product-0.7.14 app/helpers/minimum_viable_product/body_helper.rb
minimum_viable_product-0.7.13 app/helpers/minimum_viable_product/body_helper.rb
minimum_viable_product-0.7.12 app/helpers/minimum_viable_product/body_helper.rb
minimum_viable_product-0.7.11 app/helpers/minimum_viable_product/body_helper.rb
minimum_viable_product-0.7.10 app/helpers/minimum_viable_product/body_helper.rb
minimum_viable_product-0.7.9 app/helpers/minimum_viable_product/body_helper.rb
minimum_viable_product-0.7.8 app/helpers/minimum_viable_product/body_helper.rb
minimum_viable_product-0.7.7 app/helpers/minimum_viable_product/body_helper.rb
minimum_viable_product-0.7.6 app/helpers/minimum_viable_product/body_helper.rb