Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
Where would this code most likely be found in a Rails project? scope :active, lambda { where(:active => true) }
Home
Ruby
Where would this code most likely be found in a Rails project? scope :active, lambda {...
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
...