Sha256: 5551c29c642207c3072eea94343ecb990be4e17e78d23061c8237b88404232db

Contents?: true

Size: 397 Bytes

Versions: 2

Compression:

Stored size: 397 Bytes

Contents

module TimeMachine
  module ApplicationHelper

    def time_machine(options={})
      options = {
        style: 'light',
        position: 'top-left',
        state: 'expanded',
      }.update options

      options[:classes] = options.select { |k,v| [:position, :style, :state].include? k }.values.join " "
      render :partial => 'time_machine', locals: { options: options }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
time_machine-0.0.2 app/helpers/time_machine/application_helper.rb
time_machine-0.0.1 app/helpers/time_machine/application_helper.rb