Commit Graph

30 Commits

Author SHA1 Message Date
Yasuo Honda b0d09804e0 Add `Style/RedundantFileExtensionInRequire` cop
It is available since RuboCop 0.88.0
https://github.com/rubocop-hq/rubocop/blob/master/CHANGELOG.md#0880-2020-07-13
2020-12-31 20:17:00 +09:00
Yasuo Honda 7eba779fb2 Apply RuboCop auto correct ry running `bundle exec rubocop -a` 2020-12-23 16:23:55 +09:00
Shadab Malik bc13ccbdf1 Move polyamorous from gem to a module. 2020-04-02 20:13:33 -04:00
Mark Huk 4123afe8cc Moved require to ActiveSupport callback 2019-11-11 22:11:55 +03:00
Mark Huk 3df5dbbca8 Moved require for helpers and action_controller
Now they are required if ActionPack is defined
2019-11-11 22:11:55 +03:00
Greg Molnar b89ca69069 make polyamorous a separate gem 2019-02-10 13:15:37 +01:00
Akira Matsuda aee94b914a ⚠️ `*' interpreted as argument prefix 2018-02-02 18:49:41 +09:00
Edouard CHIN 11cde28f7a Use lazy load hooks to hook on ActionController::Base
- Calling directly `ActionController::Base` affects the initialization process (one of them being one that controls ActionController [configuration](aa6bcbbac8/actionpack/lib/action_controller/railtie.rb (L53-L67)))
- As a result setting configuration inside an initializer (such as the asset_host), won't have any effect
2017-11-02 17:15:13 -04:00
yuuji.yaginuma 368945bede use `ActiveSupport.on_load` to hook into Active Record
For avoiding autoloading these constants too soon.
This affect the initialization of Active Record.
Ref: https://github.com/rails/rails/issues/23589#issuecomment-229247727
2016-09-03 09:54:25 +09:00
Jon Atack 94a404c03a Refactor Ransack::Adapters from conditionals to classes 2016-04-05 11:09:21 +02:00
Jon Atack 34daae7750 Improve line spacing 2016-04-04 11:29:49 +02:00
Marten Schilstra 549342aeed Add support for attribute alias. 2015-09-25 11:59:24 +02:00
Андрей Большов 152b2509ff ActiveRecord excludes Mongoid 2015-05-22 18:46:28 +03:00
Jon Atack 63d4973885 Use fewer conditionals & simplify the required files 2015-04-08 22:55:44 +05:30
Zhomart Mukhamejanov 59920feb59 by default loads ActiveRecord's CONSTANTS 2014-08-02 15:16:16 -07:00
Zhomart Mukhamejanov b3234d20f3 load DERIVED_PREDICATES only if it has been defined 2014-08-01 21:12:27 -07:00
Zhomart Mukhamejanov d16c8b0c1b mongoid initialized 2014-07-31 23:42:22 -07:00
Zhomart Mukhamejanov e5b6014a53 ActiveRecord and Arel abstracted 2014-07-31 23:36:12 -07:00
Jon Atack 1abf8f6086 Maintain Ruby 1.8.7 syntax compatibility
since Rails 3.x stills supports Ruby 1.8.7 as per
http://guides.rubyonrails.org/v3.2.17/getting_started.html:
“Ruby language version 1.8.7 or higher.”
2014-05-01 15:55:39 +02:00
Washington Luiz b4973315e9 Merge branch 'master' into bring-rails-3
Conflicts:
	.travis.yml
	Gemfile
	README.md
	lib/ransack/adapters/active_record/3.0/context.rb
	lib/ransack/adapters/active_record/3.1/context.rb
	lib/ransack/adapters/active_record/3.2/context.rb
	lib/ransack/adapters/active_record/base.rb
	lib/ransack/adapters/active_record/context.rb
	lib/ransack/constants.rb
	lib/ransack/context.rb
	lib/ransack/helpers/form_builder.rb
	lib/ransack/helpers/form_helper.rb
	lib/ransack/nodes/attribute.rb
	lib/ransack/nodes/condition.rb
	lib/ransack/nodes/grouping.rb
	lib/ransack/nodes/sort.rb
	lib/ransack/predicate.rb
	lib/ransack/translate.rb
	ransack.gemspec
	spec/blueprints/people.rb
	spec/ransack/adapters/active_record/base_spec.rb
	spec/ransack/adapters/active_record/context_spec.rb
	spec/ransack/configuration_spec.rb
	spec/ransack/dependencies_spec.rb
	spec/ransack/helpers/form_builder_spec.rb
	spec/ransack/helpers/form_helper_spec.rb
	spec/ransack/predicate_spec.rb
	spec/ransack/search_spec.rb
	spec/ransack/translate_spec.rb
	spec/support/schema.rb
2014-04-10 00:28:29 -03:00
jonatack 575003e23f Explicitly define and require dependencies 2013-12-15 19:41:13 +01:00
Sean Linsley bb1bd746bc require the whole of Active Support's core extensions
this is a follow-up to #318
2013-12-15 11:37:23 -06:00
Tyler Hunt b1a8e020b0 Explicitly define and require dependencies. 2013-12-10 09:00:44 -05:00
Johnny Shields 9eedfb2f3d ORM agnosticism: do not `require activerecord`, and instead only load the ransack AR adapters if AR has already been defined
Fixes #296
2013-10-31 09:41:00 -04:00
Johnny Shields ff617be573 ORM agnosticism: do not `require activerecord`, and instead only load the ransack AR adapters if AR has already been defined 2013-10-30 06:46:43 +09:00
jonatack fea42266cb More Ruby 1.9 hash syntax 2013-08-12 10:27:50 +02:00
Ernie Miller 747b414110 Strip out inaccessible associations from form helper attribute collections 2011-05-30 13:00:59 -04:00
Ernie Miller 77e570cf9c Ransackers get classy. Also, laying the groundwork for authorization 2011-04-11 20:07:23 -04:00
Ernie Miller 10d720104d Initial support for polymorphic belongs_to associations 2011-04-08 11:33:10 -04:00
Ernie Miller 294015309b Initial commit. 2011-03-30 20:31:39 -04:00