Question

Several of my models have liquid methods defined, using:

class MyModel < ActiveRecord::Base
  liquid_methods :created_at, :foo, :bar, :baz
end

How can I get a list of available methods for a model (in a hash or array, I suppose)? I'd like to output the list of available methods to users who use them in things like forum posts or email templates.

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top