Sha256: 3cc77918cc71668068abb40dcdcec0f7716dc6889527ea5ec92b2d5f634a6bfb
Contents?: true
Size: 1.3 KB
Versions: 4
Compression:
Stored size: 1.3 KB
Contents
module SimpleSearchFilter mattr_accessor :page_default_param_name def self.page_default_param_name (@@page_default_param_name || :page).to_sym end mattr_accessor :sortable_column_show_arrows def self.sortable_column_show_arrows v = @@sortable_column_show_arrows v = true if v.nil? v end end # load Rails/Railtie begin require 'rails' rescue LoadError #do nothing end # load simple_search_filter components require 'simple_search_filter/filter' module SimpleSearchFilter extend ActiveSupport::Autoload #autoload :Helpers # eager_autoload do # autoload :Components # autoload :ErrorNotification # end # configuration end # extend model require 'simple_search_filter/searchable' # extend controller, helpers require 'simple_search_filter/controller' require 'simple_search_filter/helpers' require 'simple_search_filter/simple_form_extensions/wrappers_bootstrap' class ActionController::Base include SimpleSearchFilter::Controller helper SimpleSearchFilter::Helpers end #ActionController::Base.send(:helper, SimpleSearchFilter::Helpers) ActiveSupport.on_load(:action_view) do #include SimpleSearchFilter::Helpers #helper SimpleSearchFilter::Helpers end if defined? Rails require 'simple_search_filter/railtie' require 'simple_search_filter/engine' end
Version data entries
4 entries across 4 versions & 1 rubygems