0 votes
in Ruby by
Where would this code most likely be found in a Rails project?

scope :active, lambda { where(:active => true) }

 a. an Active Record model

 b. an ActionView template

 c. an ApplicationHelper file

 d. an ActionController controller

1 Answer

0 votes
by
Where would this code most likely be found in a Rails project?

scope :active, lambda { where(:active => true) }

 

 Correct answer is :-  an Active Record model

Related questions

0 votes
asked Sep 3, 2022 in Ruby by DavidAnderson
0 votes
asked Sep 2, 2022 in Ruby by DavidAnderson
...