Skip to content

Commit

Permalink
Merge fe02cab into 749984c
Browse files Browse the repository at this point in the history
  • Loading branch information
bklang committed Jul 3, 2015
2 parents 749984c + fe02cab commit c806adb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/adhearsion/generators/app/templates/config/app.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# encoding: utf-8

class DemoApp < Adhearsion::Application
plugin_name :demo
app_name :demo

# Actions to perform when initialising the application
#
Expand Down
2 changes: 2 additions & 0 deletions lib/adhearsion/plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,12 @@ def plugin_name(name = nil)
self.plugin_name = name
end
end
alias :app_name :plugin_name

def plugin_name=(name)
@plugin_name = name
end
alias :app_name= :plugin_name=

# Class method that will be used by subclasses to configure the plugin
# @param name Symbol plugin config name
Expand Down

0 comments on commit c806adb

Please sign in to comment.