Sha256: 9994f423f0f1504587c183df5b9831267bcac8a4666543e20b056e1980e86510

Contents?: true

Size: 789 Bytes

Versions: 105

Compression:

Stored size: 789 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")
    copy_all_files("/lib/sinatra/views/reports","/app/views/#{Hexacta::GEM_FILE_DIR}/reports")
  end

  helpers ReportHelper
end

Version data entries

105 entries across 105 versions & 1 rubygems

Version Path
sinatra-hexacta-1.7.20 lib/sinatra/helpers/reports.rb
sinatra-hexacta-1.7.19 lib/sinatra/helpers/reports.rb
sinatra-hexacta-1.7.18 lib/sinatra/helpers/reports.rb
sinatra-hexacta-1.7.17 lib/sinatra/helpers/reports.rb
sinatra-hexacta-1.7.16 lib/sinatra/helpers/reports.rb
sinatra-hexacta-1.7.15 lib/sinatra/helpers/reports.rb
sinatra-hexacta-1.7.14 lib/sinatra/helpers/reports.rb
sinatra-hexacta-1.7.13 lib/sinatra/helpers/reports.rb
sinatra-hexacta-1.7.12 lib/sinatra/helpers/reports.rb
sinatra-hexacta-1.7.11 lib/sinatra/helpers/reports.rb
sinatra-hexacta-1.7.10 lib/sinatra/helpers/reports.rb
sinatra-hexacta-1.7.9 lib/sinatra/helpers/reports.rb
sinatra-hexacta-1.7.8 lib/sinatra/helpers/reports.rb
sinatra-hexacta-1.7.7 lib/sinatra/helpers/reports.rb
sinatra-hexacta-1.7.6 lib/sinatra/helpers/reports.rb
sinatra-hexacta-1.7.5 lib/sinatra/helpers/reports.rb
sinatra-hexacta-1.7.4 lib/sinatra/helpers/reports.rb
sinatra-hexacta-1.7.3 lib/sinatra/helpers/reports.rb
sinatra-hexacta-1.7.2 lib/sinatra/helpers/reports.rb
sinatra-hexacta-1.7.0 lib/sinatra/helpers/reports.rb