Sha256: a27c42aed1502a9957ef420ab21e64768d53e1151e51c0ea84513634a7a0104a

Contents?: true

Size: 619 Bytes

Versions: 2

Compression:

Stored size: 619 Bytes

Contents

require 'kit/support'

# Configs
class Rad::Kit
  attr_accessor :default_item, :tags_count, :use_code_highlighter
  attr_required :tags_count
  def items; @items ||= [] end
end

rad.router.class.class_eval do
  attr_accessor :default_url
  attr_required :default_url
end

rad.config.class.class_eval do
  def custom_roles; @custom_roles ||= [] end
  def permissions; @permissions ||= {} end
  def default_viewers; @default_viewers ||= [] end
end

# Kit
#
# TODO3 move :text_utils to standalone gem
%w(
  support
  controller
  i18n
  kit_text_utils

  misc/prepare_model
  misc/user_error
).each{|f| require "kit/#{f}"}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rad_kit-0.0.10 lib/kit/kit.rb
rad_kit-0.0.9 lib/kit/kit.rb