Sha256: ec69df898485a06fc951e50fb8506a94ad15104df8a9f686e0ec831a6dc25003

Contents?: true

Size: 278 Bytes

Versions: 6

Compression:

Stored size: 278 Bytes

Contents

module DynamicPaperclip
  class InstallGenerator < Rails::Generators::Base
    def create_initializer_file
      create_file 'config/initializers/dynamic_paperclip.rb' do
        "DynamicPaperclip.config.secret = '#{SecureRandom.urlsafe_base64(50)}'"
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dynamic_paperclip-1.0.1 lib/generators/dynamic_paperclip/install_generator.rb
dynamic_paperclip-1.0.0 lib/generators/dynamic_paperclip/install_generator.rb
dynamic_paperclip-1.0.0.alpha.4 lib/generators/dynamic_paperclip/install_generator.rb
dynamic_paperclip-1.0.0a.3 lib/generators/dynamic_paperclip/install_generator.rb
dynamic_paperclip-1.0.0a.2 lib/generators/dynamic_paperclip/install_generator.rb
dynamic_paperclip-1.0.0a.1 lib/generators/dynamic_paperclip/install_generator.rb