forked from jenders/ice_kickstarter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/20130912-release'
* release/20130912-release: bump version to 3.1.1 no message bugfix: image obj class creation failed on newly created projects
- Loading branch information
Showing
8 changed files
with
37 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
class Image < Obj | ||
|
||
# Most CMS objects are either a page or a box. In order for them to | ||
# have common behavior, uncomment one of the following lines. | ||
# include Page | ||
# include Widget | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
class CreateImage < ::RailsConnector::Migration | ||
def up | ||
unless obj_class_exists?('Image') | ||
create_obj_class( | ||
name: 'Image', | ||
type: 'generic', | ||
title: 'Resource: Image', | ||
attributes: [ | ||
], | ||
preset_attributes: {}, | ||
mandatory_attributes: [] | ||
) | ||
end | ||
end | ||
|
||
private | ||
|
||
def obj_class_exists?(name) | ||
get_obj_class(name).present? | ||
rescue ::RailsConnector::ClientError | ||
false | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module InfoparkKickstarter | ||
VERSION = '3.1.0' | ||
VERSION = '3.1.1' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters