Class names are CamelCase.
Methods and variables are snake_case.
Methods with a ? suffix will return a boolean.
| /* Adds : after labels */ | |
| form label:after{ | |
| content:":"; | |
| } | |
| /* Adds * after required labels */ | |
| form label.required:after{ | |
| content:"*"; | |
| } |
| # config/initializers/hide_sql_from_errors.rb | |
| # Monkey patch ActiveRecord to not show executed statements in production errors. | |
| # Without this patch, error reporting services such as AppSignal would receive | |
| # sensitive data used in failed queries. | |
| # Use `class_eval` on AbstractAdapter instead of first defining a module and | |
| # then including it, because otherwise our patch would sometimes be overridden | |
| # by Rails' class autoloading | |
| ActiveRecord::ConnectionAdapters::AbstractAdapter.class_eval do |
| # This is a skeleton for testing models including examples of validations, callbacks, | |
| # scopes, instance & class methods, associations, and more. | |
| # Pick and choose what you want, as all models don't NEED to be tested at this depth. | |
| # | |
| # I'm always eager to hear new tips & suggestions as I'm still new to testing, | |
| # so if you have any, please share! | |
| # | |
| # @kyletcarlson | |
| # | |
| # This skeleton also assumes you're using the following gems: |