Sha256: 541b0b16052c18da1b7f3e0b2f6b2aa5de5da5cf97a1b5bb50b47676c6840a12
Contents?: true
Size: 1.65 KB
Versions: 2
Compression:
Stored size: 1.65 KB
Contents
# Include require 'rubygems' require 'active_support' require 'auxiliary_addons/error_helper' require 'auxiliary_addons/filter_utils' require 'auxiliary_addons/form_helper' require 'auxiliary_addons/html_helper' require 'auxiliary_addons/jscript_helper' require 'auxiliary_addons/list_helper' require 'auxiliary_addons/ruby_addons' # Only for Rails 3.x if Rails::VERSION::MAJOR >= 3 require 'auxiliary_addons/tableless_model' require 'auxiliary_addons/tableless31_model' require 'auxiliary_addons/validateable_model' end # = # module AuxiliaryAddons # default options that can be overridden on the global level @@options = { :use_prototype => false, # :use_jquery => true, # :use_jquery_no_conflict => false, # } mattr_reader :options def self.enable_activerecord ActiveRecord::Base.send :include, AuxiliaryAddons::RubyAddons ActiveRecord::Base.send :include, AuxiliaryAddons::FilterUtils end def self.enable_actionpack ActionController::Base.send :include, AuxiliaryAddons::RubyAddons ActionView::Base.send :include, AuxiliaryAddons::RubyAddons ActionView::Base.send :include, AuxiliaryAddons::ErrorHelper ActionView::Base.send :include, AuxiliaryAddons::FormHelper ActionView::Base.send :include, AuxiliaryAddons::HtmlHelper ActionView::Base.send :include, AuxiliaryAddons::JscriptHelper ActionView::Base.send :include, AuxiliaryAddons::ListHelper end end if defined? Rails AuxiliaryAddons.enable_activerecord if defined? ActiveRecord AuxiliaryAddons.enable_actionpack if defined? ActionController end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
auxiliary_addons-0.5.6 | lib/auxiliary_addons.rb |
auxiliary_addons-0.5.5 | lib/auxiliary_addons.rb |