ISORSA

Updated 609 days ago
  • ID: 36803673/58
In rails 5 we need to use ActiveRecord::MigrationContext instead of ActiveRecord::Migrator... In Rails application we don't have to worry about requiring or loading its classes (as opposite to Ruby apps, gems or React apps). For example, when we add a new controller PostsController, we don't have to require ApplicationController or Post model. Everything is autoloaded for us, unless we need to load stuff from lib/ directory... In PostsController, constants defined with and keywords will not trigger autoloading, but ApplicationController is unknown, the constant is missing and Rails will try to autoload the constant. Rails iterates over autoload_paths.
  • 0
  • 0
Interest Score
1
HIT Score
0.00
Domain
isorsa.com

Actual
isorsa.com

IP
185.199.108.153, 185.199.109.153, 185.199.110.153, 185.199.111.153

Status
OK

Category
Other
0 comments Add a comment