Sha256: 1b6721ecce275d55cd1369679ceda15ca8cba80a0cb7d3fcf239b83b86c071ea
Contents?: true
Size: 920 Bytes
Versions: 1
Compression:
Stored size: 920 Bytes
Contents
# to load pagination in rails app require 'will_paginate' require 'jquery-rails' require 'popper_js' require 'bootstrap' require "font-awesome-sass" require 'simple_form' if system('gem list -i simple_form') module UiBibz module Rails class Engine < ::Rails::Engine initializer "ui_bibz.helpers" do ActionView::Base.send :include, UiBibz::Helpers::UtilsHelper end initializer "ui_bibz.helpers.ui" do ActionView::Base.send :include, UiBibz::Helpers::Ui::CoreHelper ActionView::Base.send :include, UiBibz::Helpers::Ui::UxHelper end config.autoload_paths += Dir["#{config.root}/lib/ui_bibz/inputs/**/"] if defined?(::SimpleForm) initializer "ui_bibz.helpers.form" do ActionView::Base.send :include, UiBibzForm #Dir["#{config.root}/lib/ui_bibz/inputs/**/**"].each{ |b| require b } if defined?(::SimpleForm) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ui_bibz-2.0.1 | lib/ui_bibz/rails/engine.rb |