Module: Blog::Gem

Defined in:
lib/blog/gem.rb,
lib/blog/gem/engine.rb,
lib/blog/gem/version.rb,
app/models/blog/gem/application_record.rb,
app/helpers/blog/gem/application_helper.rb

Defined Under Namespace

Modules: ApplicationHelper Classes: ApplicationController, ApplicationRecord, Author, AuthorsController, BlogController, Engine, Post, PostsController

Constant Summary collapse

VERSION =
'0.1.17'

Class Method Summary collapse

Class Method Details

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

Yields:

  • (_self)

Yield Parameters:

  • _self (Blog::Gem)

    the object that the method was called on



39
40
41
42
43
44
45
# File 'lib/blog/gem.rb', line 39

def self.setup(&block)
   yield self

   if Rails.env != "production"
       self.url = "http://localhost:3000"
   end
end