Module: Backend::TimelineHelper

Defined in:
app/helpers/backend/timeline_helper.rb

Overview

##### BEGIN LICENSE BLOCK ##### Ekylibre - Simple agricultural ERP Copyright (C) 2009-2015 Brice Texier

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see <www.gnu.org/licenses/>.

##### END LICENSE BLOCK #####

Defined Under Namespace

Classes: Timeline

Instance Method Summary collapse

Instance Method Details

#timeline(object, options = {}, &_block) ⇒ Object


175
176
177
178
179
180
181
# File 'app/helpers/backend/timeline_helper.rb', line 175

def timeline(object, options = {}, &_block)
  if object
    line = Timeline.new(object, options)
    yield line
    render partial: 'backend/shared/timeline', locals: { timeline: line }
  end
end