Login
Remember
Register
Ask a Question
Where would this code most likely be found in a Rails project? scope :active, lambda { where(:active => true) }
0
votes
asked
Sep 3, 2022
in
Ruby
by
DavidAnderson
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
ruby-on-rails
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Sep 3, 2022
by
DavidAnderson
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
...