Class: BeStrong::Converter

Inherits:
Object
  • Object
show all
Defined in:
lib/be_strong/converter.rb

Class Method Summary collapse

Class Method Details

.convert(controller_path: 'app/controllers', model_path: 'app/models') ⇒ Object



3
4
5
6
7
# 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