Sha256: 036a148bb5288f0ea2d52589793ad8d709d1e831ced6113bf5650db02b46fe4a

Contents?: true

Size: 786 Bytes

Versions: 4

Compression:

Stored size: 786 Bytes

Contents

# encoding: utf-8
module Sinatra
  module ReportHelper
    extend Hexacta

    def pick_date_input(option_hash)
      slim "#{Hexacta::GEM_FILE_DIR}/reports/pick_date".to_sym, locals: option_hash
    end

    def pick_dates_input(option_hash)
      slim "#{Hexacta::GEM_FILE_DIR}/reports/pick_dates".to_sym, locals: option_hash
    end

    def pick_month_input(option_hash)
      slim "#{Hexacta::GEM_FILE_DIR}/reports/pick_month".to_sym, locals: option_hash
    end

    def pick_year_input(option_hash)
      slim "#{Hexacta::GEM_FILE_DIR}/reports/pick_year".to_sym, locals: option_hash
    end

    setup_dir("/app/views/#{Hexacta::GEM_FILE_DIR}/reports")
    symlink_all("/lib/sinatra/views/reports","/app/views/#{Hexacta::GEM_FILE_DIR}/reports")
  end

  helpers ReportHelper
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sinatra-hexacta-0.3.1 lib/sinatra/helpers/reports.rb
sinatra-hexacta-0.3.0 lib/sinatra/helpers/reports.rb
sinatra-hexacta-0.1.1 lib/sinatra/helpers/reports.rb
sinatra-hexacta-0.1.0 lib/sinatra/helpers/reports.rb