Module: Proclaim

Defined in:
app/models/proclaim/post.rb,
lib/proclaim.rb,
lib/proclaim/engine.rb,
lib/proclaim/version.rb,
app/models/proclaim/image.rb,
app/models/proclaim/comment.rb,
app/models/proclaim/subscription.rb,
app/helpers/proclaim/posts_helper.rb,
app/policies/proclaim/post_policy.rb,
app/helpers/proclaim/images_helper.rb,
app/policies/proclaim/image_policy.rb,
app/helpers/proclaim/comments_helper.rb,
app/policies/proclaim/comment_policy.rb,
app/uploaders/proclaim/image_uploader.rb,
app/helpers/proclaim/application_helper.rb,
lib/generators/proclaim/views_generator.rb,
app/mailers/proclaim/subscription_mailer.rb,
app/controllers/proclaim/posts_controller.rb,
app/helpers/proclaim/subscriptions_helper.rb,
app/policies/proclaim/subscription_policy.rb,
lib/generators/proclaim/install_generator.rb,
app/controllers/proclaim/images_controller.rb,
app/controllers/proclaim/comments_controller.rb,
app/controllers/proclaim/subscriptions_controller.rb

Overview

Schema Information

Table name: proclaim_subscriptions

id         :integer          not null, primary key
post_id    :integer
email      :string
created_at :datetime         not null
updated_at :datetime         not null

Defined Under Namespace

Modules: ApplicationHelper, CommentsHelper, Generators, ImagesHelper, PostsHelper, SubscriptionsHelper Classes: ApplicationController, Comment, CommentPolicy, CommentsController, Engine, Image, ImagePolicy, ImageUploader, ImagesController, Post, PostPolicy, PostsController, Subscription, SubscriptionMailer, SubscriptionPolicy, SubscriptionsController

Constant Summary collapse

VERSION =
"0.2.1"
@@author_class =
"User"
@@author_name_method =
:name
@@current_author_method =
"current_#{@@author_class.underscore}".to_sym
@@authentication_method =
"authenticate_#{@@author_class.underscore}!".to_sym
@@excerpt_length =

500 characters (won’t interrupt words)

500
@@editor_toolbar_buttons =
['bold', 'italic', 'underline', 'anchor', 'header1', 'header2', 'quote']

Class Method Summary collapse

Class Method Details

.setup {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Proclaim)

    the object that the method was called on



22
23
24
# File 'lib/proclaim.rb', line 22

def self.setup
	yield self
end