Sha256: 3af3989b035bcee4f0bc53229e24e53cebccf282f52cabc5b154d1ccc7e0dc66

Contents?: true

Size: 423 Bytes

Versions: 3

Compression:

Stored size: 423 Bytes

Contents

module Txtblx
  class Configuration
    attr_accessor :auto_html_block

    def initialize
      @auto_html_block = Proc.new do
        html_escape
        link :target => "_blank", :rel => "nofollow"
        simple_format
      end
    end

    def load_active_admin
      admin_path = File.join(Txtblx::Engine.root, 'lib', 'txtblx', 'admin')
      ActiveAdmin.application.load_paths.unshift(admin_path)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
txtblx-0.0.6 lib/txtblx/configuration.rb
txtblx-0.0.5 lib/txtblx/configuration.rb
txtblx-0.0.4 lib/txtblx/configuration.rb