lib/sinatra/helpers/inputs.rb in sinatra-hexacta-0.5.1 vs lib/sinatra/helpers/inputs.rb in sinatra-hexacta-0.6.0

- old
+ new

@@ -37,9 +37,17 @@ def year_input(option_hash) slim "#{Hexacta::GEM_FILE_DIR}/inputs/year".to_sym, locals: option_hash end + def paginator_input(option_hash) + slim "#{Hexacta::GEM_FILE_DIR}/inputs/paginator".to_sym, locals: option_hash + end + + def range_input(option_hash) + slim "#{Hexacta::GEM_FILE_DIR}/inputs/range".to_sym, locals: option_hash + end + setup_dir("/app/views/#{Hexacta::GEM_FILE_DIR}/inputs") copy_all_files("/lib/sinatra/views/inputs","/app/views/#{Hexacta::GEM_FILE_DIR}/inputs") end helpers InputHelper