Sha256: 1ff8406dc014082c5c5c376699076a783522b0eb760399539070c4415da02b0c

Contents?: true

Size: 289 Bytes

Versions: 4

Compression:

Stored size: 289 Bytes

Contents

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dynamic_paperclip-0.0.4 lib/generators/dynamic_paperclip/install_generator.rb
dynamic_paperclip-0.0.3 lib/generators/dynamic_paperclip/install_generator.rb
dynamic_paperclip-0.0.2 lib/generators/dynamic_paperclip/install_generator.rb
dynamic_paperclip-0.0.1 lib/generators/dynamic_paperclip/install_generator.rb