app/controllers/eventsimple/entities_controller.rb in eventsimple-1.0.0 vs app/controllers/eventsimple/entities_controller.rb in eventsimple-1.1.0

- old
+ new

@@ -4,10 +4,10 @@ def show @model_name = params[:model_name] @model_class = event_classes.find { |d| d.name == @model_name } @aggregate_id = params[:id] @event_id = params[:e] || -1 - @tab_id = params[:t] == 'event' ? 'event' : 'entity' + @tab_id = (params[:t] == 'event') ? 'event' : 'entity' primary_key = @model_class.event_class._aggregate_id @entity = @model_class.find_by!(primary_key => @aggregate_id) @entity_event_history = @entity.events.reverse