Skip to content

Commit

Permalink
TB-24 show initial file added
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdilek committed Apr 18, 2014
1 parent d9eb93a commit 97fca16
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/cybele/app_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,10 @@ def update_secret_token
template 'config/initializers/secret_token.erb', 'config/initializers/secret_token.rb'
end

def setup_show_for
copy_file 'config/initializers/show_for.rb', 'config/initializers/show_for.rb'
end

private

def action_mailer_host(rails_env, host)
Expand Down
4 changes: 4 additions & 0 deletions lib/cybele/generators/app_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,10 @@ def setup_bullet_config
build :configure_bullet
end

def install_show_for
build :setup_show_for
end

protected

def get_builder_class
Expand Down
3 changes: 3 additions & 0 deletions templates/config/initializers/show_for.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ShowFor.setup do |config|
config.label_class = nil
end

0 comments on commit 97fca16

Please sign in to comment.