In my models I have several similar named methods to enable/disable certain features, like:
def invisible
self.update_attribute(:invisble, false)
end
def visible
self.update_attribute(:invisble, true)
end
Would it be possible to refactor this to a single method and pass an argument from controller? Or is there a better way to handle these issues.