class BeStrong::Converter

Public Class Methods

convert(controller_path: 'app/controllers', model_path: 'app/models') click to toggle source
# File lib/be_strong/converter.rb, line 3
def self.convert(controller_path: 'app/controllers', model_path: 'app/models')
  applied = StrongParameter.apply_all(controller_path)
  removed = AttrAccessible.remove_all(model_path)
  {applied: applied, removed: removed}
end