Sha256: 66cc7bbf90ac55e64f6cce5442bf177bfae5734ca8f16e0622b39e4590abb152
Contents?: true
Size: 646 Bytes
Versions: 3
Compression:
Stored size: 646 Bytes
Contents
# to make Foreman#in_rake? helper available if Foreman's lib is available require 'rails' require 'less-rails' unless Rails.env.production? require 'angular-rails-templates' require File.expand_path('bastion/engine', File.dirname(__FILE__)) module Bastion @@plugins = {}; def self.plugins @@plugins end def self.register_plugin(plugin) @@plugins[plugin[:name]] = plugin end def self.config base_config = { 'markTranslated' => SETTINGS[:mark_translated] || false } Bastion.plugins.each do |name, plugin| base_config.merge!(plugin[:config]) if plugin[:config] end base_config end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bastion-0.2.8 | lib/bastion.rb |
bastion-0.2.7 | lib/bastion.rb |
bastion-0.2.6 | lib/bastion.rb |