You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Define Bit Field values# Column org_typehas_flags1=>:institution,2=>:funder,3=>:organisation,4=>:research_institute,5=>:project,6=>:school,column: 'org_type',check_for_column: !Rails.env.test?
rails console shows that Portage Network is the only Org where Org.funder? evaluates to true
aaron@ubuntu:~/Documents/GitHub/roadmap
$ rails c
Running via Spring preloader in process 1210283
Loading development environment (Rails 6.1.7.6)
irb: warn: can't alias context from irb_context.
3.0.5 :001 > Org.funder.count
(2.2ms) SELECT COUNT(*) FROM "orgs" WHERE (("orgs"."org_type" in (2,3,6,7,10,11,14,15,18,19,22,23,26,27,30,31,34,35,38,39,42,43,46,47,50,51,54,55,58,59,62,63)))
=> 1
3.0.5 :002 > Org.funder
Org Load (2.1ms) SELECT "orgs".* FROM "orgs" WHERE (("orgs"."org_type" in (2,3,6,7,10,11,14,15,18,19,22,23,26,27,30,31,34,35,38,39,42,43,46,47,50,51,54,55,58,59,62,63)))
=>
[#<Org:0x000064e55c559230
id: 8,
name: "Portage Network",
abbreviation: "Portage",
target_url: "https://portagenetwork.ca/",
The text was updated successfully, but these errors were encountered:
Please complete the following fields as applicable:
What version of the DMPRoadmap code are you running? (e.g. v2.2.0)
4.0.2+portage-4.0.1
Expected behaviour:
Actual behaviour:
app/views/usage/_total_usage.html.erb
app/controllers/usage_controller.rb
app/models/org.rb
rails console shows that Portage Network is the only Org where Org.funder? evaluates to true
The text was updated successfully, but these errors were encountered: