class <%= class_name %> < ActiveRecord::Base hobo_model # Don't put anything above this fields do <% for attribute in attributes -%> <%= attribute.name %> :<%= attribute.type %> <% end -%> timestamps end # --- Hobo Permissions --- # def creatable_by?(user) user.administrator? end def updatable_by?(user, new) user.administrator? end def deletable_by?(user) user.administrator? end def viewable_by?(user, field) true end end