Sha256: 39461724e5eaa987e82d14d02a384d3ee780c3bdd1f6acb04bd5cdba6e45e8b9
Contents?: true
Size: 573 Bytes
Versions: 1
Compression:
Stored size: 573 Bytes
Contents
class GlobalSessionConfigGenerator < Rails::Generator::Base def initialize(runtime_args, runtime_options = {}) super @app_name = File.basename(::Rails.root) @app_domain = args.shift raise ArgumentError, "Must specify DNS domain for global session cookie, e.g. 'example.com'" unless @app_domain end def manifest record do |m| m.template 'global_session.yml.erb', 'config/global_session.yml', :assigns=>{:app_name=>@app_name, :app_domain=>@app_domain} end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
global_session-0.9.0 | rails_generators/global_session_config/global_session_config_generator.rb |