Sha256: c170ed09b2b7f9689ee8ce6eb3d206f916d4f895cc6326ce683ce96255c343cc

Contents?: true

Size: 728 Bytes

Versions: 2

Compression:

Stored size: 728 Bytes

Contents

# frozen_string_literal: true

require "talkie/version"
require "talkie/engine"
require "awesome_nested_set"

module Talkie

  @@default_comments_scope = -> { order(created_at: :desc) }
  mattr_accessor :default_comments_scope

  @@comment_creator_handler = :email
  mattr_accessor :comment_creator_handler

  @@creator_path = lambda { |_user, _router| "#" }
  mattr_accessor :creator_path

  @@creator_avatar_url = lambda { |_user| "//api.adorable.io/avatars/40/abott@adorable.png" }
  mattr_accessor :creator_avatar_url

  def self.configure
    yield self
  end
end

require "talkie/acts_as_talker"
require "talkie/acts_as_commentable"
require "talkie/permission"
require "talkie/controller"
require "talkie/renderer_helper"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
talkie-0.1.1 lib/talkie.rb
talkie-0.1.0 lib/talkie.rb