rails_best_practices
https://github.com/flyerhzm/rails_best_practices
Ruby
a code metric tool for rails projects
RailsBestPractices::Prepares::InitializerPrepare#include_forbidden_attributes_protection?
check if the node is
ActiveRecord::Base.send(:include, ActiveModel::ForbiddenAttributesProtection)Edit
git clone [email protected]:flyerhzm/rails_best_practices.git
cd rails_best_practices
open lib/rails_best_practices/prepares/initializer_prepare.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-RailsBestPractices--Prepares--InitializerPrepare-include_forbidden_attributes_protection--for-pr
# Commit to gitgit add lib/rails_best_practices/prepares/initializer_prepare.rbgit commit -m "better docs for RailsBestPractices::Prepares::InitializerPrepare#include_forbidden_attributes_protection?"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-RailsBestPractices--Prepares--InitializerPrepare-include_forbidden_attributes_protection--for-pr
hub pull-request
# Celebrate!