You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -179,6 +179,8 @@ When first developing, you need to run `bundle install` and then `bundle exec ap
179
179
180
180
You can then run all appraisal files (like CI does), with `appraisal rake` or just run a specific set `DB='sqlite' bundle exec appraisal activerecord_5.2.2 rake`.
181
181
182
+
If you'd like to run a specific set of tests within a specific file or folder you can use `DB='sqlite' SPEC=path/to/file/or/folder bundle exec appraisal activerecord_5.2.2 rake`.
183
+
182
184
If you use RubyMine, you can run RSpec tests by configuring the RSpec configuration template like this:
Copy file name to clipboardExpand all lines: docs/rules_compression.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,12 @@
1
1
# Rules compressions
2
2
3
-
Your rules are optimized automatically at runtime. There are a set of "rules" to optimize your rules definition and they are implemented in the `RulesCompressor` class. Here you can see how this works:
3
+
Database are great on optimizing queries, but sometimes cancancan builds `joins` that might lead to slow performance.
4
+
This is why your rules are optimized automatically at runtime.
5
+
There are a set of "rules" to optimize your rules definition and they are implemented in the `RulesCompressor` class.
6
+
You can always disable the rules compressor by setting `CanCan.rules_compressor_enabled = false` in your initializer.
7
+
You can also enable/disable it on a specific check by using: `with_rules_compressor_enabled(false) { ... }`
8
+
9
+
Here you can see how this works:
4
10
5
11
A rule without conditions is defined as `catch_all`.
0 commit comments