active_template.rb in active_leonardo-0.4.1 vs active_template.rb in active_leonardo-0.5.0

- old
+ new

@@ -48,11 +48,11 @@ /config/initializers/secret_token.rb EOS end -gem "activeadmin", git: 'http://github.com/gregbell/active_admin.git' +gem "activeadmin", git: 'https://github.com/gregbell/active_admin.git' if test_mode gem "active_leonardo", path: "../../." else gem "active_leonardo" end @@ -107,14 +107,16 @@ end end gem 'state_machine' if test_mode || yes?("Do you have to handle states ?") -# Updates for Rails 4.1 -if /4.1.*/ === rails_version - gem 'ransack', git: 'http://github.com/activerecord-hackery/ransack.git', branch: 'rails-4.1' - gem 'polyamorous', git: 'http://github.com/activerecord-hackery/polyamorous.git' - gem 'formtastic', git: 'http://github.com/justinfrench/formtastic.git' +# Updates for latest Rails versions +if /4.1/ === rails_version +# gem 'ransack', git: 'http://github.com/activerecord-hackery/ransack.git', branch: 'rails-4.1' +# gem 'polyamorous', git: 'http://github.com/activerecord-hackery/polyamorous.git' +# gem 'formtastic', git: 'http://github.com/justinfrench/formtastic.git' +elsif /4.2/ === rails_version + gem 'inherited_resources', git: 'https://github.com/josevalim/inherited_resources.git', branch: 'rails-4-2' end dashboard_root = test_mode || yes?("Would you use dashboard as root ? (recommended)") home = test_mode || yes?("Ok. Would you create home controller as root ?") unless dashboard_root \ No newline at end of file