Module Inflector
In: lib/rails_pg_procs.rb

Methods

Public Instance methods

[Source]

    # File lib/rails_pg_procs.rb, line 13
13:   def symbolize(val)
14:     return "'#{val}'" if val =~ /-/
15:     ":#{val}"
16:   end

[Source]

    # File lib/rails_pg_procs.rb, line 9
 9:   def triggerize(table_name, events=[], before=false)
10:     events.join(" or ").gsub(":", "").tr(" ", "_").downcase + "_" + (before ? "before_" : "after_") + table_name.to_s + "_trigger"
11:   end

[Validate]