Module: Cybele::Helpers::SimpleForm

Included in:
AppBuilder
Defined in:
lib/cybele/helpers/simple_form.rb

Instance Method Summary collapse

Instance Method Details

#add_simple_form_gemObject



13
14
15
16
# File 'lib/cybele/helpers/simple_form.rb', line 13

def add_simple_form_gem
  # Add simple_form gem
  append_file('Gemfile', template_content('simple_form/simple_form_Gemfile.erb'))
end

#configure_simple_formObject



6
7
8
9
10
11
# File 'lib/cybele/helpers/simple_form.rb', line 6

def configure_simple_form
  # Run the simple_form generator
  bundle_command 'exec rails generate simple_form:install --bootstrap -force'
  # Add simple_form turkish file
  copy_file 'config/locales/simple_form.tr.yml', 'config/locales/simple_form.tr.yml'
end