Module: Glass

Defined in:
lib/glass/timeline_item.rb,
lib/glass.rb,
lib/glass/client.rb,
lib/glass/engine.rb,
lib/glass/api_keys.rb,
lib/glass/template.rb,
lib/glass/menu_item.rb,
lib/generators/glass.rb,
lib/glass/subscription.rb,
lib/glass/rails/version.rb,
lib/glass/subscription_notification.rb,
lib/generators/glass/model/model_generator.rb,
lib/generators/glass/install/install_generator.rb

Overview

used directly

Defined Under Namespace

Modules: Generators, Rails Classes: ApiKeys, Client, Engine, MenuItem, NotificationsController, Subscription, SubscriptionNotification, Template, TimelineItem

Constant Summary collapse

DEVELOPMENT_PROXY_URL =
"https://mirrornotifications.appspot.com/forward?url="
@@application_name =
application_name
@@application_version =
"0.0.1"
@@glass_template_path =
"app/views/glass"
@@_api_keys =
nil

Class Method Summary collapse

Class Method Details

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

devise trick

Yields:

  • (_self)

Yield Parameters:

  • _self (Glass)

    the object that the method was called on



31
32
33
34
35
# File 'lib/glass.rb', line 31

def self.setup
  yield self
  require "glass/api_keys"
  Glass::ApiKeys.generate!
end