Hi all
I have added the following code to my application.rb:
class ActiveRecord::Base
def public_content_columns
content_columns.reject{|column| [‘created_at’, ‘updated_at’,
‘lock_version’].include?(column.name)}
end
end
Sadly the following code in a view…
<% MusicArtist.public_content_columns.each do |column| %>
…
gives me an error message the this method does not exist for
MusicArtist.
Any idea?
Thanks
Josh