Initial commit
This commit is contained in:
14
app/helpers/project_client_helper.rb
Normal file
14
app/helpers/project_client_helper.rb
Normal file
@@ -0,0 +1,14 @@
|
||||
module ProjectClientHelper
|
||||
def selected_project_client_value(project)
|
||||
client_name = project.client_name
|
||||
|
||||
case client_name
|
||||
when "Discovery", "Nat Geo"
|
||||
val = client_name
|
||||
else
|
||||
val = "Other"
|
||||
end
|
||||
|
||||
val.parameterize(separator: '_')
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user