module KintoneNotifier

Constants

VERSION

Public Class Methods

included(base) click to toggle source
# File lib/kintone_notifier.rb, line 7
def self.included(base)
  base.extend(ClassMethods)
  base.class_eval do
    include KintoneNotifier::InstanceMethods
    if Rails.env.production?
      rescue_from Exception, :with => :render_500
      rescue_from ActiveRecord::RecordNotFound, :with => :render_404
      rescue_from ActionController::RoutingError, :with => :render_404
      rescue_from ActionView::MissingTemplate, :with => :render_404
    end
    helper_method :request_env_string

  end
end