files/app/config/base.rb in motion-prime-0.5.0 vs files/app/config/base.rb in motion-prime-0.5.1
- old
+ new
@@ -1,15 +1,14 @@
-Prime::Config.color do |color|
- color.base = 0x3aa9b6
- color.dark = 0x41929c
-end
+Prime::Config.configure do |config|
+ config.colors do |colors|
+ colors.base = 0x3aa9b6
+ colors.dark = 0x41929c
+ end
-Prime::Config.api do |api|
- api.base = "http://example.com"
- api.client_id = ""
- api.client_secret = ""
-end
+ config.font.name = "Ubuntu"
-Prime::Config.font.name = "Ubuntu"
-
-# setup model's store
-Prime::Store.connect
+ config.api do |api|
+ api.base = "http://example.com"
+ api.client_id = ""
+ api.client_secret = ""
+ end
+end
\ No newline at end of file