Sha256: 92f4925d17785a7e9a6a6c28e919902f396500c32c6016d02b9a24307bc3d993
Contents?: true
Size: 1.15 KB
Versions: 1
Compression:
Stored size: 1.15 KB
Contents
class CommitFilter::Commit::FiltersController < CommitFilter::ApplicationController layout "#{CommitFilter::ApplicationController.framework_views_path}/layouts/commit_filter/application" def new params[:filter] ||= {} @filter = CommitFilter::Model.new(params[:filter].merge(logger: logger)) @commit_filter_javascripts = [CommitFilter.configuration.manifest_file, 'commit_filter/form'] render "#{framework_views_path}/commit/filters/new" end def create params[:filter] ||= {} @filter = CommitFilter::Model.create(params[:filter].merge(logger: logger)) if @filter.valid? && @filter.last_revision.blank? flash[:alert] = I18n.t('commit_filter.filters.create.errors.nothing_found') end @commit_filter_stylesheets = [CommitFilter.configuration.manifest_file, 'commit_filter/application', 'commit_filter/commit/diff'] @commit_filter_javascripts = [ CommitFilter.configuration.manifest_file, 'commit_filter/form', 'commit_filter/file_commits', "#{CommitFilter::ApplicationController.framework_views_path}/filter_result" ] render "#{framework_views_path}/commit/filters/new" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
commit_filter-0.1.1 | app/controllers/commit_filter/commit/filters_controller.rb |