refinerycms-portfolio 0.9.3.7 → 0.9.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,7 @@
7
7
  <div class='field images_field'>
8
8
  <span class='clearfix label_inline_with_link'>
9
9
  <%= label_tag('portfolio_entry_image_ids', 'Images') %>
10
- <%= link_to "#{refinery_icon_tag "add.png"} Add", "#{insert_admin_images_url}?thickbox=true&amp;modal=true&amp;titlebar=true&amp;callback=image_added&amp;KeepThis=true&amp;TB_iframe=true&amp;width=950&amp;height=510", :class => "thickbox", :name => "Add Another Image", :id => "add_image_link" %>
10
+ <%= link_to "#{refinery_icon_tag "add.png"} Add", "#{insert_admin_images_url(:dialog => true, :width => 950, :height => 510, :callback => "image_added")}", :name => "Add Another Image", :id => "add_image_link" %>
11
11
  </span>
12
12
  <ul id='portfolio_images' class='clearfix portfolio_entry_images'>
13
13
  <% @portfolio_entry.images.each do |image| %>
@@ -26,7 +26,8 @@ class CreatePortfolioStructure < ActiveRecord::Migration
26
26
  page.parts.create(:title => default_page_part, :body => nil)
27
27
  end
28
28
 
29
- RefinerySetting[:image_thumbnails] = RefinerySetting.find_or_set(:image_thumbnails, {}).merge!({:portfolio_thumb => 'c96x96', :portfolio => '600x512'})
29
+ image_thumbnails = RefinerySetting.find_or_set(:image_thumbnails, {})
30
+ RefinerySetting[:image_thumbnails] = image_thumbnails.merge({:portfolio_thumb => 'c96x96', :portfolio => '600x512'})
30
31
  end
31
32
 
32
33
  def self.down
@@ -38,7 +39,8 @@ class CreatePortfolioStructure < ActiveRecord::Migration
38
39
  end
39
40
  Page.destroy_all({:link_url => "/portfolio"})
40
41
 
41
- RefinerySetting.find_or_set(:image_thumbnails, {}).delete_if {|key, value| key == :portfolio_thumb or key == :portfolio }
42
+ image_thumbnails = RefinerySetting.find_or_set(:image_thumbnails, {})
43
+ RefinerySetting[:image_thumbnails] = image_thumbnails.delete_if {|key, value| key == :portfolio_thumb or key == :portfolio }
42
44
 
43
45
  drop_table :images_portfolio_entries
44
46
  drop_table :portfolio_entries
data/rails/init.rb CHANGED
@@ -3,7 +3,7 @@ Refinery::Plugin.register do |plugin|
3
3
  plugin.title = "Portfolio"
4
4
  plugin.description = "Manage a portfolio"
5
5
  plugin.url = "/admin/#{plugin.title.downcase}"
6
- plugin.version = '0.9.3.7'
6
+ plugin.version = '0.9.3.8'
7
7
  plugin.menu_match = /admin\/portfolio(_entries)?/
8
8
  plugin.activity = {
9
9
  :class => PortfolioEntry,
data/readme.md CHANGED
@@ -23,13 +23,13 @@ Then run:
23
23
  refinerycms-portfolio-install /path/to/your/refinery/application
24
24
 
25
25
  Then place in your config/environment.rb (or config/application.rb for refinery 0.9.6.x) file before all other Refinery gem calls:
26
- config.gem "refinerycms-portfolio", :version => ">= 0.9.3.7", :lib => "portfolio", :source => "http://gemcutter.org"
26
+ config.gem "refinerycms-portfolio", :version => ">= 0.9.3.8", :lib => "portfolio", :source => "http://gemcutter.org"
27
27
 
28
28
  ..and follow the instructions!
29
29
 
30
30
  ### Method Two
31
31
  Place in your config/environment.rb (or config/application.rb for refinery 0.9.6.x) file before all other Refinery gem calls:
32
- config.gem "refinerycms-portfolio", :version => ">= 0.9.3.7", :lib => "portfolio", :source => "http://gemcutter.org"
32
+ config.gem "refinerycms-portfolio", :version => ">= 0.9.3.8", :lib => "portfolio", :source => "http://gemcutter.org"
33
33
 
34
34
  Then run in your application's directory:
35
35
  rake gems:install
metadata CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 0
7
7
  - 9
8
8
  - 3
9
- - 7
10
- version: 0.9.3.7
9
+ - 8
10
+ version: 0.9.3.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Resolve Digital