Sha256: a8cd1dcf390b9f4193aa915a18cfeebc0681f8df07e320fba4048d2b40e85693

Contents?: true

Size: 668 Bytes

Versions: 3

Compression:

Stored size: 668 Bytes

Contents

module Statixite
  class ApplicationController < ActionController::Base
    # Prevent CSRF attacks by raising an exception.
    # For APIs, you may want to use :null_session instead.
    protect_from_forgery with: :exception
    layout "statixite/dashboard"

    private

    def apply_post_changes
      GitService.new(@site.site_clone_path, @site.site_remote).make_changes do
        SiteOperationService.new(@site).check_and_save_posts_from_file
      end
    end
    
    def apply_config_changes
      GitService.new(@site.site_clone_path, @site.site_remote).make_changes do
        SiteOperationService.new(@site).jekyll_write_config
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
statixite-1.0.2 app/controllers/statixite/application_controller.rb
statixite-1.0.1 app/controllers/statixite/application_controller.rb
statixite-1.0.0 app/controllers/statixite/application_controller.rb