Module: Cybele::Helpers::ShowFor

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

Instance Method Summary collapse

Instance Method Details

#add_show_for_gemObject



14
15
16
17
# File 'lib/cybele/helpers/show_for.rb', line 14

def add_show_for_gem
  # Add show_for gem
  append_file('Gemfile', template_content('show_for/show_for_Gemfile.erb'))
end

#configure_show_forObject



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

def configure_show_for
  # Run the show_for generator
  bundle_command 'exec rails generate show_for:install'

  # Add show_for turkish file
  copy_file 'config/locales/show_for.tr.yml', 'config/locales/show_for.tr.yml'
end