Sha256: ec590ecdcd0b89b6b2d03222e2404d2b891c76d92ded41b80af9d8e480ed9f11

Contents?: true

Size: 558 Bytes

Versions: 3

Compression:

Stored size: 558 Bytes

Contents

module RedmineExtensions
  module RedminePatches
    module Controllers
      module VersionsControllerPatch
        extend ActiveSupport::Concern

        included do
          alias_method_chain :new, :redmine_extensions
        end

        def new_with_redmine_extensions
          @version = @project.versions.build
          @version.safe_attributes = params[:version]

          respond_to do |format|
            format.html { render action: 'new', layout: !request.xhr? }
            format.js
          end
        end

      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
redmine_extensions-0.0.12 lib/redmine_extensions/redmine_patches/controllers/versions_controller_patch.rb
redmine_extensions-0.0.10 lib/redmine_extensions/redmine_patches/controllers/versions_controller_patch.rb
redmine_extensions-0.0.8 lib/redmine_extensions/redmine_patches/controllers/versions_controller_patch.rb