Method: Ems::Article#status

Defined in:
app/models/ems/article.rb

#statusSymbol

Custom getter for status attribute to emulate ENUMs

Returns:

  • (Symbol)

    status currently assigned to the attribute



69
70
71
# File 'app/models/ems/article.rb', line 69

def status
    read_attribute(:status).to_sym if read_attribute :status
end