Permalink
Browse files

Generate config initializer when running inquiries generator. Closes #78

.
  • Loading branch information...
1 parent 535c2c2 commit 889ae31cc11da363c475f176dc345429b78ad5a2 @ugisozols ugisozols committed Apr 9, 2012
@@ -1,5 +1,11 @@
module Refinery
class InquiriesGenerator < Rails::Generators::Base
+ source_root File.expand_path('../templates', __FILE__)
+
+ def generate_inquiries_initializer
+ template 'config/initializers/refinery/inquiries.rb.erb', File.join(destination_root, 'config', 'initializers', 'refinery', 'inquiries.rb')
+ end
+
def rake_db
rake("refinery_inquiries:install:migrations")
rake("refinery_settings:install:migrations")
@@ -0,0 +1,4 @@
+Refinery::Inquiries.configure do |config|
+ # Configure whether to show privacy link
+ # config.self.show_contact_privacy_link = <%= Refinery::Inquiries.show_contact_privacy_link.inspect %>
+end

0 comments on commit 889ae31

Please sign in to comment.