#マニフェスト @lists = { scroll: { public_list: { type: 'public', }, private_list: { type: 'private', }, scroll_panels: { type: 'has_many', association_name: 'scroll_panels', }, panels: { type: 'has_many_through', association_name: 'panels', }, by_author: { type: 'filter', from: 'author', filter_key: 'author_id', }, by_panel: { type: 'through_filter', from: 'panel', through: 'scroll_panels', filter_key: 'panel_id', }, play: { type: 'play', model: 'scroll_panel', filter_key: 'scroll_id', }, }, scroll_panel: { default_page_size: 20, lists: { public_list: { type: 'public', }, private_list: { type: 'private', }, by_scroll: { type: 'filter', from: 'scroll', filter_key: 'scroll_id', }, by_panel: { type: 'filter', from: 'panel', filter_key: 'panel_id', }, }, }, comic: { default_page_size: 20, lists: { public_list: { type: 'public', }, private_list: { type: 'private', }, stories: { type: 'has_many', association_name: 'stories', }, by_author: { type: 'filter', from: 'author', filter_key: 'author_id', }, }, }, story: { default_page_size: 20, lists: { public_list: { type: 'public', }, private_list: { type: 'private', }, story_sheets: { type: 'has_many', association_name: 'story_sheets', }, sheets: { type: 'has_many', association_name: 'sheets', }, by_comic: { type: 'filter', from: 'comic', filter_key: 'comic_id', }, by_sheet: { type: 'through_filter', from: 'sheet', through: 'story_sheets', filter_key: 'sheet_id', }, by_author: { type: 'element_filter', from: 'author', filter_key: 'author_id', }, play: { type: 'play', model: 'story_sheet', filter_key: 'story_id', }, }, }, story_sheet: { default_page_size: 20, lists: { public_list: { type: 'public', }, private_list: { type: 'private', }, by_story: { type: 'filter', from: 'story', filter_key: 'story_id', }, by_sheet: { type: 'filter', from: 'sheet', filter_key: 'sheet_id', }, }, }, sheet: { default_page_size: 20, lists: { public_list: { type: 'public', }, private_list: { type: 'private', }, story_sheets: { type: 'has_many', association_name: 'story_sheets', }, stories: { type: 'has_many', association_name: 'stories', }, sheet_panels: { type: 'has_many', association_name: 'sheet_panels', }, panels: { type: 'has_many', association_name: 'panels', }, by_story: { type: 'through_filter', from: 'story', through: 'story_sheets', filter_key: 'story_id', }, by_panel: { type: 'through_filter', from: 'panel', through: 'sheet_panels', filter_key: 'panel_id', }, by_author: { type: 'filter', from: 'author', filter_key: 'author_id', }, play: { type: 'play', model: 'sheet_panel', filter_key: 'sheet_id', }, }, }, sheet_panel: { default_page_size: 20, lists: { public_list: { type: 'public', }, private_list: { type: 'private', }, by_sheet: { type: 'filter', association_name: 'sheet_panels', from: 'sheet', filter_key: 'sheet_id', }, by_panel: { type: 'filter', from: 'panel', filter_key: 'panel_id', }, }, }, panel: { default_page_size: 20, lists: { public_list: { type: 'public', }, private_list: { type: 'private', }, scroll_panels: { type: 'has_many', association_name: 'scroll_panels', }, scrolls: { type: 'has_many', association_name: 'scrolls', }, sheet_panels: { type: 'has_many', association_name: 'sheet_panels', }, sheets: { type: 'has_many', association_name: 'sheets', }, panel_pictures: { type: 'has_many', association_name: 'panel_pictures', }, speech_balloons: { type: 'has_many', association_name: 'speech_balloons', }, ground_pictures: { type: 'has_many', association_name: 'ground_pictures', }, ground_colors: { type: 'has_many', association_name: 'ground_colors', }, by_scroll: { type: 'through_filter', from: 'scroll', through: 'scroll_panels', filter_key: 'scroll_id', }, by_sheet: { type: 'through_filter', from: 'sheet', through: 'sheet_panels', filter_key: 'sheet_id', }, by_author: { type: 'filter', from: 'author', filter_key: 'author_id', }, by_speech_balloon_template: { type: 'through_filter', from: 'speech_balloon_template', through: 'speech_balloons', filter_key: 'speech_balloon_template_id', }, }, }, panel_picture: { default_page_size: 20, lists: { public_list: { type: 'public', }, private_list: { type: 'private', }, by_panel: { type: 'filter', from: 'panel', filter_key: 'panel_id', }, by_author: { type: 'element_filter', from: 'author', filter_key: 'author_id', }, }, }, speech_balloon: { default_page_size: 20, lists: { public_list: { type: 'public', }, private_list: { type: 'private', }, by_panel: { type: 'filter', from: 'panel', filter_key: 'panel_id', }, by_speech_balloon_template: { type: 'filter', from: 'speech_balloon_template', filter_key: 'speech_balloon_template_id', }, by_author: { type: 'element_filter', from: 'author', filter_key: 'author_id', }, }, }, speech: { default_page_size: 20, lists: { public_list: { type: 'public', }, by_speech_balloon: { type: 'filter', from: 'speech_balloon', includes: {speech_balloon: {panel: {}}}, filter_key: 'speech_balloon_id', }, by_writing_format: { type: 'filter', from: 'writing_format', filter_key: 'writing_format_id', }, }, }, balloon: { default_page_size: 20, lists: { public_list: { type: 'public', }, by_speech_balloon: { type: 'filter', from: 'speech_balloon', includes: {speech_balloon: {panel: {}}}, filter_key: 'speech_balloon_id', }, #by_system_picture: { # type: 'filter', # from: 'system_picture', # filter_key: 'system_picture_id', #}, }, }, ground_picture: { default_page_size: 20, lists: { public_list: { type: 'public', }, private_list: { type: 'private', }, by_panel: { type: 'filter', from: 'panel', filter_key: 'panel_id', }, by_author: { type: 'element_filter', from: 'author', filter_key: 'author_id', }, }, }, ground_color: { default_page_size: 20, lists: { public_list: { type: 'public', }, private_list: { type: 'private', }, by_panel: { type: 'filter', from: 'panel', filter_key: 'panel_id', }, by_author: { type: 'element_filter', from: 'author', filter_key: 'author_id', }, }, }, original_picture: { default_page_size: 20, lists: { private_list: { type: 'private', }, }, }, picture: { }, resource_picture: { default_page_size: 20, lists: { public_list: { type: 'public', }, private_list: { type: 'private', }, by_license: { type: 'filter', from: 'license', filter_key: 'license_id', }, by_artist: { type: 'filter', from: 'artist', filter_key: 'artist_id', }, }, }, speech_balloon_template: { default_page_size: 20, lists: { public_list: { type: 'public', }, select_items: { type: 'system_resource', }, speech_balloons: { type: 'has_many', association_name: 'speech_balloons', }, panels: { type: 'has_many', association_name: 'panels', }, }, }, writing_format: { default_page_size: 20, lists: { public_list: { type: 'public', }, select_items: { type: 'system_resource', }, speeches: { type: 'has_many', association_name: 'speeches', }, by_system_picture: { type: 'filter', from: 'system_picture', filter_key: 'system_picture_id', }, }, }, license_group: { default_page_size: 20, lists: { public_list: { type: 'public', }, select_items: { type: 'system_resource', }, licenses: { type: 'has_many', association_name: 'licenses', }, }, }, license: { default_page_size: 20, lists: { public_list: { type: 'public', }, resource_pictures: { type: 'has_many', association_name: 'resource_pictures', }, by_license_group: { type: 'filter', from: 'license_group', filter_key: 'license_group_id', }, by_system_picture: { type: 'filter', from: 'system_picture', filter_key: 'system_picture_id', }, }, }, author: { default_page_size: 20, lists: { public_list: { type: 'public', }, scrolls: { type: 'has_many', association_name: 'scrolls', }, comics: { type: 'has_many', association_name: 'comics', }, stories: { type: 'has_many', association_name: 'stories', }, sheets: { type: 'has_many', association_name: 'sheets', }, panels: { type: 'has_many', association_name: 'panels', }, panel_pictures: { type: 'has_many', association_name: 'panel_pictures', }, speech_balloons: { type: 'has_many', association_name: 'speech_balloons', }, ground_pictures: { type: 'has_many', association_name: 'ground_pictures', }, ground_colors: { type: 'has_many', association_name: 'ground_colors', }, }, }, artist: { default_page_size: 20, lists: { public_list: { type: 'public', }, resource_pictures: { type: 'has_many', association_name: 'resource_pictures', }, }, }, system_picture: { default_page_size: 20, lists: { public_list: { type: 'public', }, }, }, }