Rename AppDelegateParent to Delegate

This commit is contained in:
Jamon Holmgren
2013-04-16 13:40:42 -07:00
parent b6fe6e9012
commit f95ca327ee
2 changed files with 4 additions and 2 deletions

View File

@@ -102,7 +102,8 @@ Run `bundle install` in Terminal to install ProMotion.
Go into your app/app_delegate.rb file and add the following:
```ruby
class AppDelegate < ProMotion::AppDelegateParent
# Note: ProMotion::AppDelegateParent is an alias to ProMotion::Delegate
class AppDelegate < ProMotion::Delegate
def on_load(app, options)
open HomeScreen.new(nav_bar: true)
end

View File

@@ -1,5 +1,5 @@
module ProMotion
class AppDelegateParent
class Delegate
include ProMotion::ScreenTabs
attr_accessor :window
@@ -60,4 +60,5 @@ module ProMotion
@home_screen.nil? == false
end
end
class AppDelegateParent < Delegate; end # For backwards compatibility
end