Sha256: 8954f62540b0cb7d41889d5cb04e35b27abca0126edd4a3b910994ae9808aafa
Contents?: true
Size: 1.4 KB
Versions: 3
Compression:
Stored size: 1.4 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_form' 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
simple_search_filter-0.2.1 | lib/simple_search_filter.rb |
simple_search_filter-0.1.1 | lib/simple_search_filter.rb |
simple_search_filter-0.1.0 | lib/simple_search_filter.rb |