Class: Page

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
ActiveRecord::Transitions
Defined in:
app/models/page.rb

Instance Method Summary collapse

Instance Method Details

#available_eventsObject



33
34
35
# File 'app/models/page.rb', line 33

def available_events
  Page.state_machines[:default].events_for(self.state.to_sym)
end