Sha256: 58f8821d9c60ed5af77b555bf778ab133bd964053b6cfbae2ee4306237452369

Contents?: true

Size: 1.04 KB

Versions: 1

Compression:

Stored size: 1.04 KB

Contents

require 'state_machine'
require 'state_machine/version'

require 'the_simple_sort'
require 'the_sortable_tree'

require 'the_comments/config'
require 'the_comments/version'

module TheComments
  COMMENTS_COOKIES_TOKEN = 'JustTheCommentsCookies'

  class Engine < Rails::Engine
    config.autoload_paths += Dir["#{config.root}/app/controllers/concerns/**/"]
    config.autoload_paths += Dir["#{config.root}/app/models/concerns/**/"]
  end
end

# Loading of concerns
_root_ = File.expand_path('../../',  __FILE__)
require "#{_root_}/config/routes.rb"

if StateMachine::VERSION.to_f <= 1.2
  puts '~' * 50
  puts 'TheComments'
  puts '~' * 50
  puts 'WARNING!'
  puts 'StateMachine patch for Rails4 will be applied'
  puts
  puts '> private method *around_validation* from StateMachine::Integrations::ActiveModel will be public'
  puts
  puts 'https://github.com/pluginaweek/state_machine/issues/295'
  puts 'https://github.com/pluginaweek/state_machine/issues/251'
  puts '~' * 50
  module StateMachine::Integrations::ActiveModel
    public :around_validation
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
the_comments-2.3.1 lib/the_comments.rb