app/controllers/concepts_movement_controller.rb
# get concept to work with
# returns a new version of the concept or the current draft (if exists)
get concept to work with
returns a new version of the concept or the current draft (if exists)
get concept to work with returns a new version of the concept or the current draft ( if exists )
def concept_version(concept)
    draft = Iqvoc::Concept.base_class.by_origin(concept.origin).unpublished
    if draft.any?
      result = draft.first
    else
      result = concept.branch(current_user)
      result.save!
    end
    result
  end
def concept_version ( concept ) draft = Iqvoc :: Concept . base_class . by_origin ( concept . origin ) . unpublished if draft . any? result = draft . first else result = concept . branch ( current_user ) result . save! end result end
get concept to work with
returns a new version of the concept or the current draft (if exists)
get concept to work with returns a new version of the concept or the current draft ( if exists )
# use current draft concept, there should be only one # create a new version
concept
<not_specific>