├── .document ├── .gemtest ├── .gitignore ├── .rspec ├── CHANGELOG.md ├── Gemfile ├── MIT-LICENSE ├── README.md ├── Rakefile ├── config └── locales │ └── kaminari.yml ├── cursor.gemspec ├── gemfiles ├── active_record_32.gemfile ├── active_record_40.gemfile ├── active_record_41.gemfile ├── active_record_42.gemfile └── active_record_edge.gemfile ├── lib ├── cursor.rb ├── cursor │ ├── config.rb │ ├── engine.rb │ ├── hooks.rb │ ├── models │ │ ├── active_record_extension.rb │ │ ├── active_record_model_extension.rb │ │ ├── configuration_methods.rb │ │ └── page_scope_methods.rb │ ├── railtie.rb │ └── version.rb └── generators │ └── cursor │ ├── config_generator.rb │ └── templates │ └── cursor_config.rb └── spec ├── config └── config_spec.rb ├── fake_app ├── active_record │ ├── config.rb │ └── models.rb └── rails_app.rb ├── fake_gem.rb ├── models ├── active_record │ └── scopes_spec.rb └── configuration_methods_spec.rb ├── spec_helper.rb └── support ├── database_cleaner.rb └── matchers.rb /.document: -------------------------------------------------------------------------------- 1 | lib/**/*.rb 2 | MIT-LICENSE 3 | -------------------------------------------------------------------------------- /.gemtest: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/barkbox/cursor/HEAD/.gitignore -------------------------------------------------------------------------------- /.rspec: -------------------------------------------------------------------------------- 1 | --color 2 | --format=d 3 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/barkbox/cursor/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/barkbox/cursor/HEAD/Gemfile -------------------------------------------------------------------------------- /MIT-LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/barkbox/cursor/HEAD/MIT-LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/barkbox/cursor/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/barkbox/cursor/HEAD/Rakefile -------------------------------------------------------------------------------- /config/locales/kaminari.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/barkbox/cursor/HEAD/config/locales/kaminari.yml -------------------------------------------------------------------------------- /cursor.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/barkbox/cursor/HEAD/cursor.gemspec -------------------------------------------------------------------------------- /gemfiles/active_record_32.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/barkbox/cursor/HEAD/gemfiles/active_record_32.gemfile -------------------------------------------------------------------------------- /gemfiles/active_record_40.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/barkbox/cursor/HEAD/gemfiles/active_record_40.gemfile -------------------------------------------------------------------------------- /gemfiles/active_record_41.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/barkbox/cursor/HEAD/gemfiles/active_record_41.gemfile -------------------------------------------------------------------------------- /gemfiles/active_record_42.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/barkbox/cursor/HEAD/gemfiles/active_record_42.gemfile -------------------------------------------------------------------------------- /gemfiles/active_record_edge.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/barkbox/cursor/HEAD/gemfiles/active_record_edge.gemfile -------------------------------------------------------------------------------- /lib/cursor.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/barkbox/cursor/HEAD/lib/cursor.rb -------------------------------------------------------------------------------- /lib/cursor/config.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/barkbox/cursor/HEAD/lib/cursor/config.rb -------------------------------------------------------------------------------- /lib/cursor/engine.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/barkbox/cursor/HEAD/lib/cursor/engine.rb -------------------------------------------------------------------------------- /lib/cursor/hooks.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/barkbox/cursor/HEAD/lib/cursor/hooks.rb -------------------------------------------------------------------------------- /lib/cursor/models/active_record_extension.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/barkbox/cursor/HEAD/lib/cursor/models/active_record_extension.rb -------------------------------------------------------------------------------- /lib/cursor/models/active_record_model_extension.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/barkbox/cursor/HEAD/lib/cursor/models/active_record_model_extension.rb -------------------------------------------------------------------------------- /lib/cursor/models/configuration_methods.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/barkbox/cursor/HEAD/lib/cursor/models/configuration_methods.rb -------------------------------------------------------------------------------- /lib/cursor/models/page_scope_methods.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/barkbox/cursor/HEAD/lib/cursor/models/page_scope_methods.rb -------------------------------------------------------------------------------- /lib/cursor/railtie.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/barkbox/cursor/HEAD/lib/cursor/railtie.rb -------------------------------------------------------------------------------- /lib/cursor/version.rb: -------------------------------------------------------------------------------- 1 | module Cursor 2 | VERSION = '0.1.3' 3 | end 4 | -------------------------------------------------------------------------------- /lib/generators/cursor/config_generator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/barkbox/cursor/HEAD/lib/generators/cursor/config_generator.rb -------------------------------------------------------------------------------- /lib/generators/cursor/templates/cursor_config.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/barkbox/cursor/HEAD/lib/generators/cursor/templates/cursor_config.rb -------------------------------------------------------------------------------- /spec/config/config_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/barkbox/cursor/HEAD/spec/config/config_spec.rb -------------------------------------------------------------------------------- /spec/fake_app/active_record/config.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/barkbox/cursor/HEAD/spec/fake_app/active_record/config.rb -------------------------------------------------------------------------------- /spec/fake_app/active_record/models.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/barkbox/cursor/HEAD/spec/fake_app/active_record/models.rb -------------------------------------------------------------------------------- /spec/fake_app/rails_app.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/barkbox/cursor/HEAD/spec/fake_app/rails_app.rb -------------------------------------------------------------------------------- /spec/fake_gem.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/barkbox/cursor/HEAD/spec/fake_gem.rb -------------------------------------------------------------------------------- /spec/models/active_record/scopes_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/barkbox/cursor/HEAD/spec/models/active_record/scopes_spec.rb -------------------------------------------------------------------------------- /spec/models/configuration_methods_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/barkbox/cursor/HEAD/spec/models/configuration_methods_spec.rb -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/barkbox/cursor/HEAD/spec/spec_helper.rb -------------------------------------------------------------------------------- /spec/support/database_cleaner.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/barkbox/cursor/HEAD/spec/support/database_cleaner.rb -------------------------------------------------------------------------------- /spec/support/matchers.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/barkbox/cursor/HEAD/spec/support/matchers.rb --------------------------------------------------------------------------------