Sha256: cf6ad0f347fed0834496196a2e72ad5a3ede881b997104ba3f5aac67114054cc

Contents?: true

Size: 326 Bytes

Versions: 5

Compression:

Stored size: 326 Bytes

Contents

module Storefront
  module BodyHelper
    def body_id(string)
      @body_id = string
    end

    def body_class(string)
      @body_class = string
    end

    def body_attributes(options = {})
      options[:class] = @body_class if @body_class
      options[:id] = @body_id if @body_id
    
      options
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
storefront-0.3.2 lib/storefront/helpers/body_helper.rb
storefront-0.3.1 lib/storefront/helpers/body_helper.rb
storefront-0.3.0 lib/storefront/helpers/body_helper.rb
storefront-0.2.8 lib/storefront/helpers/body_helper.rb
storefront-0.2.7 lib/storefront/helpers/body_helper.rb