Sha256: bb71b1c59102220bd10e27da4a8ba376d88f709b53a2881418bf04d770cc7dc0

Contents?: true

Size: 1.63 KB

Versions: 26

Compression:

Stored size: 1.63 KB

Contents

module Wbase
  class << self
    mattr_accessor(
      # Common
      :title,
      :description,
      :url,
      :image,
      :keywords,
      :site_name,
      :admin_email,
      :firehose_email,

      # Landing
      :sub_title,
      :call_to_action,
      :call_to_action_path,
      :getting_started_video,

      # Styles
      :primary_color,
      :success_color,
      :info_color,
      :warning_color,
      :danger_color,

      # Integrations
      :olark_id,
      :ga_id,
      :google_site_verification,

      # Standard
      :footer_text,

      # Admin
      :master_pass

    )
    [:team,
     :nav_items,
     :features,
     :case_studies,
     :testimonials,
     :socials,
     :admin_menu,
     :plans].each do |setting|
       mattr_accessor setting do
         []
       end
     end

     landing_sections = [
       :nav_view,
       :header_view,
       :features_view,
       :description_view,
       :video_view,
       :customers_view,
       :pricing_view,
       :trial_view,
       :about_view,
       :newsletter_view,
       :team_view,
       :social_view,
       :contact_view,
       :footer_view,
     ]
     landing_sections.each do |setting|
       mattr_accessor setting do
         true
       end
     end
     mattr_accessor :landing_sections do
       landing_sections
     end
  end

  def self.setup(&block)
    yield self
  end

  class Engine < ::Rails::Engine
    isolate_namespace Wbase
    config.generators do |g|
      g.orm             :active_record
      g.template_engine :erb
    end
    config.to_prepare do
      Wbase::ApplicationController.helper Rails.application.helpers
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
wbase-0.3.20 lib/wbase/engine.rb
wbase-0.3.19 lib/wbase/engine.rb
wbase-0.3.18 lib/wbase/engine.rb
wbase-0.3.17 lib/wbase/engine.rb
wbase-0.3.16 lib/wbase/engine.rb
wbase-0.3.15 lib/wbase/engine.rb
wbase-0.3.14 lib/wbase/engine.rb
wbase-0.3.13 lib/wbase/engine.rb
wbase-0.3.12 lib/wbase/engine.rb
wbase-0.3.11 lib/wbase/engine.rb
wbase-0.3.10 lib/wbase/engine.rb
wbase-0.3.9 lib/wbase/engine.rb
wbase-0.3.8 lib/wbase/engine.rb
wbase-0.3.7 lib/wbase/engine.rb
wbase-0.3.6 lib/wbase/engine.rb
wbase-0.3.5 lib/wbase/engine.rb
wbase-0.3.4 lib/wbase/engine.rb
wbase-0.3.3 lib/wbase/engine.rb
wbase-0.3.2 lib/wbase/engine.rb
wbase-0.3.1 lib/wbase/engine.rb